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

View File

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