move tx error limit to variable (10%)

This commit is contained in:
proddy
2020-07-16 22:35:21 +02:00
parent 50a8c20d56
commit a07c46d6f8

View File

@@ -139,7 +139,7 @@ uint8_t EMSESP::bus_status() {
} }
// Tx Failure rate > 5% // 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; return BUS_STATUS_TX_ERRORS;
} }