From 7a941c8882b0761b64d6f35cb56d8ecaed41781b Mon Sep 17 00:00:00 2001 From: stefan123t Date: Mon, 3 Oct 2022 23:19:48 +0200 Subject: [PATCH] fix condition --- tools/esp8266/app.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;