AddressSanitizer does not like "yeah, not really refactoring"?

This commit is contained in:
rusefillc 2022-08-21 00:45:39 -04:00
parent 6d634e3c6a
commit 217e6218bf
1 changed files with 4 additions and 6 deletions

View File

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