mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
fix blink node fade times...
This commit is contained in:
@@ -24,6 +24,8 @@ module.exports = function(RED) {
|
||||
this.serial = n.serial;
|
||||
if (!this.serial) { delete this.serial; }
|
||||
this.fade = Number(n.fade) || 500;
|
||||
if (this.fade < 0) { this.fade = 0; }
|
||||
if (this.fade > 60000) { this.fade = 60000; }
|
||||
var node = this;
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user