Browse Source

fix condition

pull/328/head
stefan123t 2 years ago
parent
commit
7a941c8882
  1. 2
      tools/esp8266/app.cpp

2
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;

Loading…
Cancel
Save