disable CAN when used InputTrigger - shared Pin

This commit is contained in:
Marcel Peterkau 2023-09-25 23:01:23 +02:00
parent b775738e20
commit f320fb1ca6

View File

@ -105,8 +105,11 @@ void setup()
Serial.print("\nGPS-Init done"); Serial.print("\nGPS-Init done");
#endif #endif
#ifdef FEATURE_ENABLE_CAN #ifdef FEATURE_ENABLE_CAN
Init_CAN(); if (LubeConfig.SpeedSource != SOURCE_IMPULSE)
Serial.print("\nCAN-Init done"); {
Init_CAN();
Serial.print("\nCAN-Init done");
}
#endif #endif
Serial.print("\nSource-Init done"); Serial.print("\nSource-Init done");
@ -183,7 +186,10 @@ void loop()
Display_Process(); Display_Process();
#endif #endif
#ifdef FEATURE_ENABLE_CAN #ifdef FEATURE_ENABLE_CAN
CAN_Process(); if (LubeConfig.SpeedSource != SOURCE_IMPULSE)
{
CAN_Process();
}
#endif #endif
Button_Process(); Button_Process();
LED_Process(); LED_Process();