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

correct BBB callback response to check exists

To Fix #198
This commit is contained in:
Dave Conway-Jones 2016-04-14 11:26:57 +01:00
parent 49b9277c26
commit 9300e81e3d
2 changed files with 2 additions and 2 deletions

View File

@ -495,7 +495,7 @@ module.exports = function (RED) {
bonescript.detachInterrupt(node._pin); bonescript.detachInterrupt(node._pin);
process.nextTick(function () { process.nextTick(function () {
setPinMode(node._pin, bonescript.OUTPUT, function (response, pin) { setPinMode(node._pin, bonescript.OUTPUT, function (response, pin) {
if (response.value === true) { if (!response) {
node.on("input", inputCallback); node.on("input", inputCallback);
// Set the pin to the default state once the dust settles // Set the pin to the default state once the dust settles
setTimeout(endPulseCallback, 50); setTimeout(endPulseCallback, 50);

View File

@ -1,6 +1,6 @@
{ {
"name" : "node-red-node-beaglebone", "name" : "node-red-node-beaglebone",
"version" : "0.1.5", "version" : "0.1.6",
"description" : "A set of Node-RED nodes to interface to the GPIO pins of a Beaglebone Black board", "description" : "A set of Node-RED nodes to interface to the GPIO pins of a Beaglebone Black board",
"dependencies" : { "dependencies" : {
"octalbonescript":"^1.1.*" "octalbonescript":"^1.1.*"