No pins should be restarted for no reason during config change #3151
This commit is contained in:
parent
b141f83a88
commit
82da6e43fd
|
@ -183,14 +183,10 @@ void stopTriggerDebugPins(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
||||||
|
|
||||||
void startTriggerDebugPins(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
void startTriggerDebugPins(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
||||||
for (int i = 0; i < TRIGGER_INPUT_PIN_COUNT; i++) {
|
for (int i = 0; i < TRIGGER_INPUT_PIN_COUNT; i++) {
|
||||||
if (isConfigurationChanged(triggerInputDebugPins[i])) {
|
efiSetPadModeIfConfigurationChanged("trigger debug", triggerInputDebugPins[i], PAL_MODE_OUTPUT_PUSHPULL PASS_ENGINE_PARAMETER_SUFFIX);
|
||||||
efiSetPadMode("trigger debug", CONFIG(triggerInputDebugPins[i]), PAL_MODE_OUTPUT_PUSHPULL PASS_ENGINE_PARAMETER_SUFFIX);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
for (int i = 0; i < CAM_INPUTS_COUNT; i++) {
|
for (int i = 0; i < CAM_INPUTS_COUNT; i++) {
|
||||||
if (isConfigurationChanged(camInputsDebug[i])) {
|
efiSetPadModeIfConfigurationChanged("cam debug", camInputsDebug[i], PAL_MODE_OUTPUT_PUSHPULL PASS_ENGINE_PARAMETER_SUFFIX);
|
||||||
efiSetPadMode("cam debug", CONFIG(camInputsDebug[i]), PAL_MODE_OUTPUT_PUSHPULL PASS_ENGINE_PARAMETER_SUFFIX);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue