From 4f7524d8deb0be4b130857bb324498ef60d83b7e Mon Sep 17 00:00:00 2001 From: ntim Date: Thu, 5 Feb 2015 09:50:05 +0100 Subject: [PATCH] Small performance improvement if off on black is true. Former-commit-id: dc69a21681432bef540c396847d64b07fa0bbb09 --- libsrc/leddevice/LedDevicePhilipsHue.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/libsrc/leddevice/LedDevicePhilipsHue.cpp b/libsrc/leddevice/LedDevicePhilipsHue.cpp index c8cfa339..10437a02 100755 --- a/libsrc/leddevice/LedDevicePhilipsHue.cpp +++ b/libsrc/leddevice/LedDevicePhilipsHue.cpp @@ -166,10 +166,6 @@ int LedDevicePhilipsHue::write(const std::vector & ledValues) { CiColor xy = lamp.rgbToCiColor(color.red / 255.0f, color.green / 255.0f, color.blue / 255.0f); // Write color if color has been changed. if (xy != lamp.color) { - // Switch on if the lamp has been previously switched off. - if (switchOffOnBlack && lamp.color == lamp.black) { - put(getStateRoute(lamp.id), QString("{\"on\": true}")); - } // Send adjust color and brightness command in JSON format. // We have to set the transition time each time. put(getStateRoute(lamp.id),