mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-24 19:26:37 +00:00
Fix compile warning
This commit is contained in:
parent
d3b2f8c489
commit
e5a78deaa3
@ -542,6 +542,7 @@ void HueLightsCommand(uint8_t device, uint32_t device_id, String &response) {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
#endif
|
#endif
|
||||||
|
/*
|
||||||
switch(on)
|
switch(on)
|
||||||
{
|
{
|
||||||
case false : ExecuteCommandPower(device, POWER_OFF, SRC_HUE);
|
case false : ExecuteCommandPower(device, POWER_OFF, SRC_HUE);
|
||||||
@ -549,6 +550,8 @@ void HueLightsCommand(uint8_t device, uint32_t device_id, String &response) {
|
|||||||
case true : ExecuteCommandPower(device, POWER_ON, SRC_HUE);
|
case true : ExecuteCommandPower(device, POWER_ON, SRC_HUE);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
ExecuteCommandPower(device, (on) ? POWER_ON : POWER_OFF, SRC_HUE);
|
||||||
response += buf;
|
response += buf;
|
||||||
resp = true;
|
resp = true;
|
||||||
#ifdef USE_SHUTTER
|
#ifdef USE_SHUTTER
|
||||||
|
Loading…
x
Reference in New Issue
Block a user