Add `set_power` event

This commit is contained in:
Stephan Hadinger 2021-11-29 23:21:21 +01:00
parent f77f77258f
commit 38d834dda9
1 changed files with 3 additions and 2 deletions

View File

@ -811,8 +811,9 @@ bool Xdrv52(uint8_t function)
case FUNC_EVERY_SECOND:
callBerryEventDispatcher(PSTR("every_second"), nullptr, 0, nullptr);
break;
// case FUNC_SET_POWER:
// break;
case FUNC_SET_POWER:
callBerryEventDispatcher(PSTR("set_power"), nullptr, XdrvMailbox.index, nullptr);
break;
#ifdef USE_WEBSERVER
case FUNC_WEB_ADD_CONSOLE_BUTTON:
if (XdrvMailbox.index) {