1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00

apply analogue in patch

Thanks @mschm
to Close #166
This commit is contained in:
Dave Conway-Jones 2016-01-12 22:37:37 +00:00
parent f0867c5a01
commit 705c7f76c4
2 changed files with 24 additions and 24 deletions

View File

@ -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);

View File

@ -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.*"