From e3392d92c46b58ff8c52889030fb4b09ec195690 Mon Sep 17 00:00:00 2001 From: Marcel Peterkau Date: Sat, 18 Mar 2023 15:21:18 +0100 Subject: [PATCH] Changed DTC for CAN-Signal timeout (Startup-delay) --- Software/src/can.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Software/src/can.cpp b/Software/src/can.cpp index 78a5da7..3a10e65 100644 --- a/Software/src/can.cpp +++ b/Software/src/can.cpp @@ -39,7 +39,7 @@ uint32_t Process_CAN_WheelSpeed() milimeters_to_add = (RWP_millimeter_per_second * timesincelast) / 1000; } - if (lastRecTimestamp != 0) + if (lastRecTimestamp > 1000) { MaintainDTC(DTC_NO_CAN_SIGNAL, DTC_CRITICAL, (millis() > lastRecTimestamp + 10000 ? true : false)); }