Stop logging can errors after 500

This commit is contained in:
2022-10-01 02:48:24 +02:00
parent a062b9369b
commit cac60a248d

View File

@ -303,6 +303,7 @@ void sendCanCommands()
++can_total_error_cnt;
can_sequential_bus_errors = status_info.bus_error_count;
if (can_total_error_cnt < 500)
ESP_LOGW(TAG, "twai_transmit() failed after %lldms with %s, seq err: %lu, total err: %lu",
std::chrono::floor<std::chrono::milliseconds>(timestamp_after - timestamp_before).count(),
esp_err_to_name(result),