tx error limit set to 10%

This commit is contained in:
proddy
2020-07-16 22:31:17 +02:00
parent 57016aca79
commit 5fbddc9ac9

View File

@@ -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_HT3 = 0x80; // EMS bus type Junkers/HT3
static constexpr uint8_t EMS_MASK_BUDERUS = 0xFF; // EMS bus type Buderus 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() { static bool bus_connected() {
#ifndef EMSESP_STANDALONE #ifndef EMSESP_STANDALONE
if ((uuid::get_uptime() - last_bus_activity_) > EMS_BUS_TIMEOUT) { if ((uuid::get_uptime() - last_bus_activity_) > EMS_BUS_TIMEOUT) {