hiding stuff from unit tests
This commit is contained in:
parent
499ebda03e
commit
c3a87bc4d3
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue