trigger layer start-up is a mess #5241

reducing the mess: reducing code duplication
This commit is contained in:
rusefillc 2023-04-19 17:21:23 -04:00
parent cb2d817da9
commit dae865210a
3 changed files with 1 additions and 3 deletions

View File

@ -158,7 +158,6 @@ void startTriggerInputPins() {
}
void onEcuStartTriggerImplementation() {
onEcuStartDoSomethingTriggerInputPins();
}
#endif /* (HAL_TRIGGER_USE_PAL == TRUE) || (HAL_TRIGGER_USE_ADC == TRUE) */

View File

@ -90,8 +90,6 @@ static bool isCompEnabled = false;
void onEcuStartTriggerImplementation() {
compInit();
compStart(EFI_COMP_PRIMARY_DEVICE, &comp_shaft_cfg);
onEcuStartDoSomethingTriggerInputPins();
}
static int getDacValue(uint8_t voltage) {

View File

@ -570,6 +570,7 @@ void initHardware() {
#if EFI_PROD_CODE && EFI_SHAFT_POSITION_INPUT
onEcuStartTriggerImplementation();
onEcuStartDoSomethingTriggerInputPins();
#endif /* EFI_SHAFT_POSITION_INPUT */
#if EFI_HIP_9011