yeah, not really refactoring
This commit is contained in:
parent
09ec99f192
commit
4f916edb27
|
@ -211,7 +211,9 @@ void startIdleThread() {
|
||||||
// Force the idle controller to use 0 offset, as this is handled by the open loop table instead.
|
// Force the idle controller to use 0 offset, as this is handled by the open loop table instead.
|
||||||
engineConfiguration->idleRpmPid.offset = 0;
|
engineConfiguration->idleRpmPid.offset = 0;
|
||||||
|
|
||||||
engine->module<IdleController>().unmock().init();
|
IdleController *controller = &engine->module<IdleController>().unmock();
|
||||||
|
|
||||||
|
controller->init();
|
||||||
|
|
||||||
#if ! EFI_UNIT_TEST
|
#if ! EFI_UNIT_TEST
|
||||||
// todo: we still have to explicitly init all hardware on start in addition to handling configuration change via
|
// todo: we still have to explicitly init all hardware on start in addition to handling configuration change via
|
||||||
|
@ -219,9 +221,9 @@ void startIdleThread() {
|
||||||
initIdleHardware();
|
initIdleHardware();
|
||||||
#endif /* EFI_UNIT_TEST */
|
#endif /* EFI_UNIT_TEST */
|
||||||
|
|
||||||
engine->module<IdleController>().unmock().idleState = INIT;
|
controller->idleState = INIT;
|
||||||
engine->module<IdleController>().unmock().baseIdlePosition = -100.0f;
|
controller->baseIdlePosition = -100.0f;
|
||||||
engine->module<IdleController>().unmock().currentIdlePosition = -100.0f;
|
controller->currentIdlePosition = -100.0f;
|
||||||
|
|
||||||
#if ! EFI_UNIT_TEST
|
#if ! EFI_UNIT_TEST
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue