From c3a87bc4d33651c93a6c67d0896bea52be371882 Mon Sep 17 00:00:00 2001 From: Andrey Date: Thu, 6 Jul 2023 21:34:43 -0400 Subject: [PATCH] hiding stuff from unit tests --- firmware/controllers/system/periodic_task.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/controllers/system/periodic_task.cpp b/firmware/controllers/system/periodic_task.cpp index 78f6cd5188..17bd2500e7 100644 --- a/firmware/controllers/system/periodic_task.cpp +++ b/firmware/controllers/system/periodic_task.cpp @@ -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 */