diff --git a/firmware/controllers/trigger/trigger_central.cpp b/firmware/controllers/trigger/trigger_central.cpp index 178e6b035f..a4b675055f 100644 --- a/firmware/controllers/trigger/trigger_central.cpp +++ b/firmware/controllers/trigger/trigger_central.cpp @@ -45,6 +45,8 @@ WaveChart waveChart; #endif /* EFI_ENGINE_SNIFFER */ +static scheduling_s debugToggleScheduling; + trigger_central_s::trigger_central_s() : hwEventCounters() { } @@ -123,6 +125,22 @@ static void syncAndReport(TriggerCentral *tc, int mod, int remainder DECLARE_ENG } } +static void turnOffAllDebugFields(void *arg) { + (void)arg; +#if EFI_PROD_CODE + for (int index = 0;indexexecutor.scheduleByTimestamp(&debugToggleScheduling, nowNt + MS2NT(100), &turnOffAllDebugFields); } if (CONFIG(displayLogicLevelsInEngineSniffer) && isImportantFront) { diff --git a/firmware/hw_layer/digital_input/trigger/trigger_input.cpp b/firmware/hw_layer/digital_input/trigger/trigger_input.cpp index e4cfc3d4f1..5548aef5e6 100644 --- a/firmware/hw_layer/digital_input/trigger/trigger_input.cpp +++ b/firmware/hw_layer/digital_input/trigger/trigger_input.cpp @@ -139,6 +139,7 @@ void stopTriggerInputPins(void) { turnOffTriggerInputPin(i, true); } if (isConfigurationChanged(triggerInputDebugPins[i])) { + efiSetPadUnused(CONFIG(triggerInputDebugPins[i])); } } for (int i = 0; i < CAM_INPUTS_COUNT; i++) { @@ -146,6 +147,7 @@ void stopTriggerInputPins(void) { turnOffTriggerInputPin(i, false); } if (isConfigurationChanged(camInputsDebug[i])) { + efiSetPadUnused(CONFIG(camInputsDebug[i])); } } } @@ -157,6 +159,7 @@ void startTriggerInputPins(void) { turnOnTriggerInputPin(msg, i, true); } if (isConfigurationChanged(triggerInputDebugPins[i])) { + efiSetPadMode("trigger debug", CONFIG(triggerInputDebugPins[i]), PAL_MODE_OUTPUT_PUSHPULL); } } @@ -165,6 +168,7 @@ void startTriggerInputPins(void) { turnOnTriggerInputPin("Cam", i, false); } if (isConfigurationChanged(camInputsDebug[i])) { + efiSetPadMode("cam debug", CONFIG(camInputsDebug[i]), PAL_MODE_OUTPUT_PUSHPULL); } } }