diff --git a/tools/esp8266/app.cpp b/tools/esp8266/app.cpp index 85aea9be..7c8266c8 100644 --- a/tools/esp8266/app.cpp +++ b/tools/esp8266/app.cpp @@ -325,7 +325,7 @@ void app::processPayload(bool retransmit) { if(!buildPayload(iv->id)) { // payload not complete if(mPayload[iv->id].requested) { if(retransmit) { - if(iv->devControlCmd == Restart || CleanState_LockAndAlarm || iv->devControlCmd) { + if(iv->devControlCmd == Restart || iv->devControlCmd == CleanState_LockAndAlarm ) { // This is required to prevent retransmissions without answer. DPRINTLN(DBG_INFO, F("Prevent retransmit on Restart / CleanState_LockAndAlarm...")); mPayload[iv->id].retransmits = mConfig.maxRetransPerPyld;