Skip to content
This repository was archived by the owner on May 6, 2021. It is now read-only.

Commit dc69a21

Browse files
committed
Small performance improvement if off on black is true.
1 parent 650ce3b commit dc69a21

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

libsrc/leddevice/LedDevicePhilipsHue.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,6 @@ int LedDevicePhilipsHue::write(const std::vector<ColorRgb> & ledValues) {
166166
CiColor xy = lamp.rgbToCiColor(color.red / 255.0f, color.green / 255.0f, color.blue / 255.0f);
167167
// Write color if color has been changed.
168168
if (xy != lamp.color) {
169-
// Switch on if the lamp has been previously switched off.
170-
if (switchOffOnBlack && lamp.color == lamp.black) {
171-
put(getStateRoute(lamp.id), QString("{\"on\": true}"));
172-
}
173169
// Send adjust color and brightness command in JSON format.
174170
// We have to set the transition time each time.
175171
put(getStateRoute(lamp.id),

0 commit comments

Comments
 (0)