mirror of https://github.com/arendst/Tasmota.git
Add `set_power` event
This commit is contained in:
parent
f77f77258f
commit
38d834dda9
|
@ -811,8 +811,9 @@ bool Xdrv52(uint8_t function)
|
||||||
case FUNC_EVERY_SECOND:
|
case FUNC_EVERY_SECOND:
|
||||||
callBerryEventDispatcher(PSTR("every_second"), nullptr, 0, nullptr);
|
callBerryEventDispatcher(PSTR("every_second"), nullptr, 0, nullptr);
|
||||||
break;
|
break;
|
||||||
// case FUNC_SET_POWER:
|
case FUNC_SET_POWER:
|
||||||
// break;
|
callBerryEventDispatcher(PSTR("set_power"), nullptr, XdrvMailbox.index, nullptr);
|
||||||
|
break;
|
||||||
#ifdef USE_WEBSERVER
|
#ifdef USE_WEBSERVER
|
||||||
case FUNC_WEB_ADD_CONSOLE_BUTTON:
|
case FUNC_WEB_ADD_CONSOLE_BUTTON:
|
||||||
if (XdrvMailbox.index) {
|
if (XdrvMailbox.index) {
|
||||||
|
|
Loading…
Reference in New Issue