From f320fb1ca6a7fd9344ca206e1852b01c07b4ee04 Mon Sep 17 00:00:00 2001 From: Marcel Peterkau Date: Mon, 25 Sep 2023 23:01:23 +0200 Subject: [PATCH] disable CAN when used InputTrigger - shared Pin --- Software/src/main.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Software/src/main.cpp b/Software/src/main.cpp index 7e461dc..1a28812 100644 --- a/Software/src/main.cpp +++ b/Software/src/main.cpp @@ -105,8 +105,11 @@ void setup() Serial.print("\nGPS-Init done"); #endif #ifdef FEATURE_ENABLE_CAN - Init_CAN(); - Serial.print("\nCAN-Init done"); + if (LubeConfig.SpeedSource != SOURCE_IMPULSE) + { + Init_CAN(); + Serial.print("\nCAN-Init done"); + } #endif Serial.print("\nSource-Init done"); @@ -183,7 +186,10 @@ void loop() Display_Process(); #endif #ifdef FEATURE_ENABLE_CAN - CAN_Process(); + if (LubeConfig.SpeedSource != SOURCE_IMPULSE) + { + CAN_Process(); + } #endif Button_Process(); LED_Process();