Added required hooks

This commit is contained in:
stefanbode 2020-08-03 18:08:49 +02:00 committed by GitHub
parent b966a5a933
commit d16cdb108c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -207,6 +207,7 @@ void SetDevicePower(power_t rpower, uint32_t source)
XdrvMailbox.index = rpower; XdrvMailbox.index = rpower;
XdrvCall(FUNC_SET_POWER); // Signal power state XdrvCall(FUNC_SET_POWER); // Signal power state
XsnsCall(FUNC_SET_POWER); // Signal power state
XdrvMailbox.index = rpower; XdrvMailbox.index = rpower;
XdrvMailbox.payload = source; XdrvMailbox.payload = source;
@ -1746,4 +1747,5 @@ void GpioInit(void)
SetLedLink(Settings.ledstate &8); SetLedLink(Settings.ledstate &8);
XdrvCall(FUNC_PRE_INIT); XdrvCall(FUNC_PRE_INIT);
XsnsCall(FUNC_PRE_INIT);
} }