mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
remove node.done calls to tidy up
bump packages
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name" : "node-red-node-pi-unicorn-hat",
|
||||
"version" : "0.0.20",
|
||||
"version" : "0.0.22",
|
||||
"description" : "A Node-RED node to output to a Raspberry Pi Unicorn HAT from Pimorini.",
|
||||
"dependencies" : {
|
||||
"pngjs": "2.2.*"
|
||||
|
@@ -231,9 +231,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"}); }
|
||||
});
|
||||
@@ -248,7 +248,7 @@ module.exports = function(RED) {
|
||||
node.status({fill:"grey",shape:"ring",text:"closed"});
|
||||
if (node.tout) { clearTimeout(node.tout); }
|
||||
if (node.child != null) {
|
||||
node.done = done;
|
||||
node.finished = done;
|
||||
node.child.kill('SIGKILL');
|
||||
}
|
||||
else { done(); }
|
||||
|
Reference in New Issue
Block a user