fix possible endless tx repeats on write rejected

This commit is contained in:
MichaelDvP
2022-10-17 10:12:34 +02:00
parent 3e3e7156ec
commit d80831e708

View File

@@ -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