trigger layer start-up is a mess #5241
reducing the mess: reducing code duplication
This commit is contained in:
parent
cb2d817da9
commit
dae865210a
|
@ -158,7 +158,6 @@ void startTriggerInputPins() {
|
|||
}
|
||||
|
||||
void onEcuStartTriggerImplementation() {
|
||||
onEcuStartDoSomethingTriggerInputPins();
|
||||
}
|
||||
|
||||
#endif /* (HAL_TRIGGER_USE_PAL == TRUE) || (HAL_TRIGGER_USE_ADC == TRUE) */
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue