mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
fix ternary assignment in timeswitch.
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user