mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
Remove couts.
Former-commit-id: fdc93ea33644313277bd4b01c14e4a63396c077f
This commit is contained in:
parent
dbd7a86665
commit
dc2e173f04
@ -178,12 +178,10 @@ int LedDevicePhilipsHue::write(const std::vector<ColorRgb> & ledValues) {
|
|||||||
// From black to a color.
|
// From black to a color.
|
||||||
if (lamp.color == lamp.black && xy != lamp.black) {
|
if (lamp.color == lamp.black && xy != lamp.black) {
|
||||||
put(getStateRoute(lamp.id), QString("{\"on\": true}"));
|
put(getStateRoute(lamp.id), QString("{\"on\": true}"));
|
||||||
std::cout << "switchon" << std::endl;
|
|
||||||
}
|
}
|
||||||
// From a color to black.
|
// From a color to black.
|
||||||
else if (lamp.color != lamp.black && xy == lamp.black) {
|
else if (lamp.color != lamp.black && xy == lamp.black) {
|
||||||
put(getStateRoute(lamp.id), QString("{\"on\": false}"));
|
put(getStateRoute(lamp.id), QString("{\"on\": false}"));
|
||||||
std::cout << "switchoff" << std::endl;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Remember last color.
|
// Remember last color.
|
||||||
|
Loading…
Reference in New Issue
Block a user