diff --git a/hardware/LEDborg/78-ledborg.js b/hardware/LEDborg/78-ledborg.js index 7dd8f960..e1e50245 100644 --- a/hardware/LEDborg/78-ledborg.js +++ b/hardware/LEDborg/78-ledborg.js @@ -97,9 +97,14 @@ module.exports = function(RED) { } if (RED.settings.verbose) { node.log("out: "+msg.payload); } - if (node.child !== null) { node.child.stdin.write(rgb+"\n"); } - else { node.warn("Command not running"); } - node.status({fill:"green",shape:"dot",text:msg.payload}); + if (node.child !== null) { + node.child.stdin.write(rgb+"\n"); + node.status({fill:"green",shape:"dot",text:msg.payload}); + } + else { + node.warn("Command not running"); + node.status({fill:"red",shape:"ring",text:"Command not running"}); + } } node.child = spawn(gpioCommand, ["borg","11"]); diff --git a/hardware/LEDborg/package.json b/hardware/LEDborg/package.json index b0e7ff76..f8fac49b 100644 --- a/hardware/LEDborg/package.json +++ b/hardware/LEDborg/package.json @@ -1,6 +1,6 @@ { "name" : "node-red-node-ledborg", - "version" : "0.0.12", + "version" : "0.0.13", "description" : "A Node-RED node to control a PiBorg LedBorg board for a Raspberry Pi.", "dependencies" : { },