trigger layer start-up is a mess #5241
reducing the mess: moving logic out of strange method
This commit is contained in:
parent
dae865210a
commit
d423bb063a
|
@ -193,9 +193,6 @@ void onEcuStartDoSomethingTriggerInputPins() {
|
||||||
// if we do not have primary input channel maybe it's BCM mode and we inject RPM value via Lua?
|
// if we do not have primary input channel maybe it's BCM mode and we inject RPM value via Lua?
|
||||||
engine->rpmCalculator.unregister();
|
engine->rpmCalculator.unregister();
|
||||||
}
|
}
|
||||||
|
|
||||||
// then we will enable all the changed pins
|
|
||||||
startTriggerInputPins();
|
|
||||||
#endif /* EFI_PROD_CODE */
|
#endif /* EFI_PROD_CODE */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -571,6 +571,7 @@ void initHardware() {
|
||||||
#if EFI_PROD_CODE && EFI_SHAFT_POSITION_INPUT
|
#if EFI_PROD_CODE && EFI_SHAFT_POSITION_INPUT
|
||||||
onEcuStartTriggerImplementation();
|
onEcuStartTriggerImplementation();
|
||||||
onEcuStartDoSomethingTriggerInputPins();
|
onEcuStartDoSomethingTriggerInputPins();
|
||||||
|
startTriggerInputPins();
|
||||||
#endif /* EFI_SHAFT_POSITION_INPUT */
|
#endif /* EFI_SHAFT_POSITION_INPUT */
|
||||||
|
|
||||||
#if EFI_HIP_9011
|
#if EFI_HIP_9011
|
||||||
|
|
Loading…
Reference in New Issue