mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
parent
f0867c5a01
commit
705c7f76c4
@ -65,7 +65,7 @@ module.exports = function (RED) {
|
||||
// measurements, then divides the total number, applies output scaling and
|
||||
// sends the result
|
||||
var analogReadCallback = function (err, x) {
|
||||
sum = sum + x.value;
|
||||
sum = sum + Number(x);
|
||||
count = count - 1;
|
||||
if (count > 0) {
|
||||
bonescript.analogRead(node._pin, analogReadCallback);
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name" : "node-red-node-beaglebone",
|
||||
"version" : "0.1.0",
|
||||
"version" : "0.1.1",
|
||||
"description" : "A set of Node-RED nodes to interface to the GPIO pins of a Beaglebone Black board",
|
||||
"dependencies" : {
|
||||
"octalbonescript":"^1.1.*"
|
||||
|
Loading…
Reference in New Issue
Block a user