mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 08:19:52 +03:00
move tx error limit to variable (10%)
This commit is contained in:
@@ -139,7 +139,7 @@ uint8_t EMSESP::bus_status() {
|
||||
}
|
||||
|
||||
// Tx Failure rate > 5%
|
||||
if (((txservice_.telegram_fail_count() * 100) / total_sent) > 5) {
|
||||
if (((txservice_.telegram_fail_count() * 100) / total_sent) > EMSbus::EMS_TX_ERROR_LIMIT) {
|
||||
return BUS_STATUS_TX_ERRORS;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user