fix ternary assignment in timeswitch.

This commit is contained in:
Dave Conway-Jones
2015-11-03 19:21:12 +00:00
parent a0ff123673
commit 08ddfac83c
2 changed files with 2 additions and 2 deletions

View File

@@ -138,7 +138,7 @@ module.exports = function(RED) {
var msg = {};
if (node.mytopic) { msg.topic = node.mytopic; }
(proceed >= 2) ? (msg.payload = 1) : (msg.payload = 0);
msg.payload = (process>=2) ? 1 : 0;
node.send(msg);
});