iobroker.wifilight
Advanced tools
Comparing version 0.0.29 to 0.0.30
{ | ||
"common": { | ||
"name": "wifilight", | ||
"version": "0.0.29", | ||
"version": "0.0.30", | ||
"title": "WiFi Light", | ||
@@ -6,0 +6,0 @@ "desc": { |
{ | ||
"name": "iobroker.wifilight", | ||
"version": "0.0.29", | ||
"version": "0.0.30", | ||
"description": "WiFi Light Adapter", | ||
@@ -5,0 +5,0 @@ "author": { |
@@ -331,9 +331,14 @@ "use strict"; | ||
var cmd = cmds[i]; | ||
if (cmd.x === undefined) cmd.x = 0; | ||
var delay = Math.abs(cmd.x); | ||
if (cmd.r !== undefined) { | ||
self.fade(channel, cmd, delay); | ||
self.states.red = cmd.r; self.states.green = cmd.g; self.states.blue = cmd.b; | ||
setTimeout(function() { | ||
self.states.red = cmd.r; | ||
self.states.green = cmd.g; | ||
self.states.blue = cmd.b; | ||
}, 10); | ||
} | ||
if (cmd.x < 0) return; | ||
self.prgTimer.set(doIt, 10 + delay * 100); | ||
self.prgTimer.set(doIt, 10 + delay * 10); | ||
} | ||
@@ -896,4 +901,2 @@ if (cmds.length > 0) { | ||
function main() { | ||
@@ -923,1 +926,2 @@ | ||
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
71907
1395