diff --git a/firmware/controllers/system/timer/scheduler.cpp b/firmware/controllers/system/timer/scheduler.cpp index bed0f0705b..a3afc03504 100644 --- a/firmware/controllers/system/timer/scheduler.cpp +++ b/firmware/controllers/system/timer/scheduler.cpp @@ -22,6 +22,6 @@ void * action_s::getArgument() const { #if EFI_UNIT_TEST efitick_t scheduling_s::getMomentUs() { - return momentX; + return NT2US(momentX); } #endif diff --git a/unit_tests/test-framework/test_executor.cpp b/unit_tests/test-framework/test_executor.cpp index 2c5d86686e..f6e34dd624 100644 --- a/unit_tests/test-framework/test_executor.cpp +++ b/unit_tests/test-framework/test_executor.cpp @@ -29,7 +29,7 @@ void TestExecutor::scheduleForLater(const char *msg, scheduling_s *scheduling, i } int TestExecutor::executeAll(efitimeus_t nowUs) { - return schedulingQueue.executeAll(nowUs); + return schedulingQueue.executeAll(US2NT(nowUs)); } void TestExecutor::clear() { @@ -62,7 +62,7 @@ void TestExecutor::scheduleByTimestamp(const char *msg, scheduling_s *scheduling return; } - schedulingQueue.insertTask(scheduling, timeUs, action); + schedulingQueue.insertTask(scheduling, US2NT(timeUs), action); } void TestExecutor::scheduleByTimestampNt(const char *msg, scheduling_s* scheduling, efitick_t timeNt, action_s action) {