From 5fbddc9ac96f00d42bf252a806607f1ee2ad7ff7 Mon Sep 17 00:00:00 2001 From: proddy Date: Thu, 16 Jul 2020 22:31:17 +0200 Subject: [PATCH] tx error limit set to 10% --- src/telegram.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/telegram.h b/src/telegram.h index 58410f469..51a70e83d 100644 --- a/src/telegram.h +++ b/src/telegram.h @@ -129,6 +129,8 @@ class EMSbus { static constexpr uint8_t EMS_MASK_HT3 = 0x80; // EMS bus type Junkers/HT3 static constexpr uint8_t EMS_MASK_BUDERUS = 0xFF; // EMS bus type Buderus + static constexpr uint8_t EMS_TX_ERROR_LIMIT = 10; // % limit of failed Tx read/write attempts before showing a warning + static bool bus_connected() { #ifndef EMSESP_STANDALONE if ((uuid::get_uptime() - last_bus_activity_) > EMS_BUS_TIMEOUT) {