diff --git a/firmware/controllers/algo/engine.cpp b/firmware/controllers/algo/engine.cpp index 3a34efd55f..37fbce3e87 100644 --- a/firmware/controllers/algo/engine.cpp +++ b/firmware/controllers/algo/engine.cpp @@ -178,7 +178,7 @@ void Engine::periodicSlowCallback() { #endif // EFI_PROD_CODE #if ANALOG_HW_CHECK_MODE - efiAssertVoid(OBD_PCM_Processor_Fault, isAdcChannelValid(engineConfiguration->clt.adcChannel), "No CLT setting"); + efiAssertVoid(ObdCode::OBD_PCM_Processor_Fault, isAdcChannelValid(engineConfiguration->clt.adcChannel), "No CLT setting"); efitimesec_t secondsNow = getTimeNowS(); #if ! HW_CHECK_ALWAYS_STIMULATE diff --git a/misc/stm32f1_test_project/timer/event_queue.cpp b/misc/stm32f1_test_project/timer/event_queue.cpp index 8afa49c570..266399ecf8 100644 --- a/misc/stm32f1_test_project/timer/event_queue.cpp +++ b/misc/stm32f1_test_project/timer/event_queue.cpp @@ -108,7 +108,7 @@ void EventQueue::remove(scheduling_s* scheduling) { return; } - efiAssertVoid(OBD_PCM_Processor_Fault, current == scheduling, "current not equal to scheduling"); + efiAssertVoid(ObdCode::OBD_PCM_Processor_Fault, current == scheduling, "current not equal to scheduling"); // Link around the removed item prev->nextScheduling_s = current->nextScheduling_s; diff --git a/misc/stm32f1_test_project/timer/microsecond_timer.cpp b/misc/stm32f1_test_project/timer/microsecond_timer.cpp index d8e71273fd..b28494311a 100644 --- a/misc/stm32f1_test_project/timer/microsecond_timer.cpp +++ b/misc/stm32f1_test_project/timer/microsecond_timer.cpp @@ -50,7 +50,7 @@ static bool hwStarted = false; * This function should be invoked under kernel lock which would disable interrupts. */ void setHardwareSchedulerTimer(efitick_t nowNt, efitick_t setTimeNt) { - efiAssertVoid(OBD_PCM_Processor_Fault, hwStarted, "HW.started"); + efiAssertVoid(ObdCode::OBD_PCM_Processor_Fault, hwStarted, "HW.started"); // How many ticks in the future is this event? auto timeDeltaNt = setTimeNt - nowNt;