From baae1025b714535d85eb712a099790e81defd3cd Mon Sep 17 00:00:00 2001 From: proddy Date: Sun, 16 Aug 2020 15:42:36 +0200 Subject: [PATCH] skip Tx retry when in EMSESP_DEBUG --- src/telegram.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/telegram.h b/src/telegram.h index 0432d82a8..ffed3ccb0 100644 --- a/src/telegram.h +++ b/src/telegram.h @@ -351,7 +351,11 @@ class TxService : public EMSbus { return tx_telegrams_; } +#if defined(EMSESP_DEBUG) + static constexpr uint8_t MAXIMUM_TX_RETRIES = 0; // when compiled with EMSESP_DEBUG don't retry +#else static constexpr uint8_t MAXIMUM_TX_RETRIES = 3; +#endif private: uint8_t tx_telegram_id_ = 0; // queue counter