disable CAN when used InputTrigger - shared Pin
This commit is contained in:
@@ -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
|
||||||
|
if (LubeConfig.SpeedSource != SOURCE_IMPULSE)
|
||||||
|
{
|
||||||
Init_CAN();
|
Init_CAN();
|
||||||
Serial.print("\nCAN-Init done");
|
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
|
||||||
|
if (LubeConfig.SpeedSource != SOURCE_IMPULSE)
|
||||||
|
{
|
||||||
CAN_Process();
|
CAN_Process();
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
Button_Process();
|
Button_Process();
|
||||||
LED_Process();
|
LED_Process();
|
||||||
|
Reference in New Issue
Block a user