Remove couts.

Former-commit-id: fdc93ea33644313277bd4b01c14e4a63396c077f
This commit is contained in:
ntim 2014-07-16 20:46:59 +02:00
parent dbd7a86665
commit dc2e173f04

View File

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