remove node.done calls to tidy up

bump packages
This commit is contained in:
Dave Conway-Jones
2019-06-27 22:26:50 +01:00
parent f32f578c09
commit 8cf3c8b990
10 changed files with 1197 additions and 195 deletions

View File

@@ -130,9 +130,9 @@ module.exports = function(RED) {
node.child.on('close', function () {
node.child = null;
if (RED.settings.verbose) { node.log(RED._("rpi-gpio.status.closed")); }
if (node.done) {
if (node.finished) {
node.status({fill:"grey",shape:"ring",text:"closed"});
node.done();
node.finished();
}
else { node.status({fill:"red",shape:"ring",text:"stopped"}); }
});
@@ -146,7 +146,7 @@ module.exports = function(RED) {
node.on("close", function(done) {
node.status({fill:"grey",shape:"ring",text:"closed"});
if (node.child != null) {
node.done = done;
node.finished = done;
node.child.kill('SIGKILL');
}
else { done(); }

View File

@@ -1,6 +1,6 @@
{
"name" : "node-red-node-pi-neopixel",
"version" : "0.0.24",
"version" : "0.0.25",
"description" : "A Node-RED node to output to a neopixel (ws2812) string of LEDS from a Raspberry Pi.",
"dependencies" : {
},