diff --git a/hardware/BBB/145-BBB-hardware.js b/hardware/BBB/145-BBB-hardware.js index acbd2f8e..bce965e9 100644 --- a/hardware/BBB/145-BBB-hardware.js +++ b/hardware/BBB/145-BBB-hardware.js @@ -495,7 +495,7 @@ module.exports = function (RED) { bonescript.detachInterrupt(node._pin); process.nextTick(function () { setPinMode(node._pin, bonescript.OUTPUT, function (response, pin) { - if (response.value === true) { + if (!response) { node.on("input", inputCallback); // Set the pin to the default state once the dust settles setTimeout(endPulseCallback, 50); diff --git a/hardware/BBB/package.json b/hardware/BBB/package.json index f147cc31..1823ec5c 100644 --- a/hardware/BBB/package.json +++ b/hardware/BBB/package.json @@ -1,6 +1,6 @@ { "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", "dependencies" : { "octalbonescript":"^1.1.*"