fix blink node fade times...

This commit is contained in:
Dave Conway-Jones
2016-02-04 21:03:43 +00:00
parent 6c3dbbbfbb
commit 9539c3674f
3 changed files with 5 additions and 3 deletions

View File

@@ -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 {