From d80831e7087c0d998fb531663a9bcfb1f2bb707a Mon Sep 17 00:00:00 2001 From: MichaelDvP Date: Mon, 17 Oct 2022 10:12:34 +0200 Subject: [PATCH] fix possible endless tx repeats on write rejected --- src/emsesp.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/emsesp.cpp b/src/emsesp.cpp index 688638bde..d65bb6693 100644 --- a/src/emsesp.cpp +++ b/src/emsesp.cpp @@ -1191,6 +1191,7 @@ void EMSESP::incoming_telegram(uint8_t * data, const uint8_t length) { LOG_ERROR("Last Tx write rejected by host"); txservice_.send_poll(); // close the bus txservice_.reset_retry_count(); + tx_successful = true; } } else if (tx_state == Telegram::Operation::TX_READ) { // got a telegram with data in it. See if the src/dest matches that from the last one we sent and continue to process it