hiding stuff from unit tests

This commit is contained in:
Andrey 2023-07-06 21:34:43 -04:00
parent 499ebda03e
commit c3a87bc4d3
1 changed files with 2 additions and 2 deletions

View File

@ -9,13 +9,13 @@
#include "os_util.h"
#include "perf_trace.h"
void runAndScheduleNext(PeriodicTimerController *controller) {
#if !EFI_UNIT_TEST
void runAndScheduleNext(PeriodicTimerController *controller) {
{
ScopePerf perf(PE::PeriodicTimerControllerPeriodicTask);
controller->PeriodicTask();
}
chVTSetAny(&controller->timer, TIME_MS2I(controller->getPeriodMs()), (vtfunc_t) &runAndScheduleNext, controller);
#endif /* EFI_UNIT_TEST */
}
#endif /* EFI_UNIT_TEST */