load of tiny listing fixes, undef, unused, etc

This commit is contained in:
Dave Conway-Jones
2016-04-09 18:00:14 +01:00
parent 37ba29484a
commit 48bcd3c7df
22 changed files with 532 additions and 535 deletions

View File

@@ -1,6 +1,6 @@
{
"name" : "node-red-node-pilcd",
"version" : "0.0.4",
"version" : "0.0.5",
"description" : "A Node-RED node for Raspberry Pi to write to HD44780 style LCD panels.",
"dependencies" : {
},

View File

@@ -43,7 +43,6 @@ module.exports = function(RED) {
var node = this;
function inputlistener(msg) {
var out = msg.payload.toString();
if (RED.settings.verbose) { node.log("inp: " + msg.payload); }
if (node.child !== null) { node.child.stdin.write(msg.payload + "\n"); }
else { node.warn("Command not running"); }
@@ -90,7 +89,6 @@ module.exports = function(RED) {
}
node.on("close", function(done) {
delete pinsInUse[node.pin];
if (node.child != null) {
node.child.stdin.write("c:lose" + node.pin);
node.child.kill('SIGKILL');