Refactor Sonoff SPM power on state

This commit is contained in:
Theo Arends 2022-04-17 11:08:19 +02:00
parent 4c156f715e
commit a3389f74eb
1 changed files with 0 additions and 9 deletions

View File

@ -1097,15 +1097,6 @@ void SSPMHandleReceivedData(void) {
SSPMSendGetScheme(Sspm->module_selected);
} else {
AddLog(LOG_LEVEL_DEBUG, PSTR("SPM: Relay scan done"));
#ifndef SSPM_SIMULATE
if (Sspm->power_on_state) {
TasmotaGlobal.power = Sspm->power_on_state;
Sspm->power_on_state = 0;
SetPowerOnState();
}
#endif
Sspm->mstate = SPM_SCAN_COMPLETE;
}
break;