mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
load of tiny listing fixes, undef, unused, etc
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name" : "node-red-node-pi-unicorn-hat",
|
||||
"version" : "0.0.12",
|
||||
"version" : "0.0.13",
|
||||
"description" : "A Node-RED node to output to a Raspberry Pi Unicorn HAT from Pimorini.",
|
||||
"dependencies" : {
|
||||
"pngjs": "2.2.*"
|
||||
|
@@ -93,7 +93,7 @@ module.exports = function(RED) {
|
||||
|
||||
function inputlistener(msg) {
|
||||
if (typeof msg.payload === "string") {
|
||||
var a,b,c,d,e,i,j,x,y;
|
||||
var a,b,i,j,x,y;
|
||||
msg.payload = msg.payload.replace('"','');
|
||||
var s = msg.payload.toUpperCase().split(",");
|
||||
var doDraw = true;
|
||||
@@ -235,7 +235,7 @@ module.exports = function(RED) {
|
||||
if (RED.settings.verbose) { node.log("err: "+data+" :"); }
|
||||
});
|
||||
|
||||
node.child.on('close', function (code) {
|
||||
node.child.on('close', function () {
|
||||
node.child = null;
|
||||
if (RED.settings.verbose) { node.log(RED._("rpi-gpio.status.closed")); }
|
||||
if (node.done) {
|
||||
@@ -253,7 +253,7 @@ module.exports = function(RED) {
|
||||
|
||||
node.on("close", function(done) {
|
||||
node.status({fill:"grey",shape:"ring",text:"closed"});
|
||||
if (node.tout) { clearTimeout(tout); }
|
||||
if (node.tout) { clearTimeout(node.tout); }
|
||||
if (node.child != null) {
|
||||
node.done = done;
|
||||
node.child.kill('SIGKILL');
|
||||
|
Reference in New Issue
Block a user