From d0b693a8dc18c66ca973bf26343dd1bfaf57d737 Mon Sep 17 00:00:00 2001 From: Peter Feerick Date: Fri, 5 Aug 2022 14:29:17 +1000 Subject: [PATCH] fix: Radios without RTCLOCK need `tmr10ms` also Fix bug introduced in #1967 which only affects !defined(RTCLOCK) boards --- radio/src/logs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radio/src/logs.cpp b/radio/src/logs.cpp index 7025cbd4f..23f32ab3f 100644 --- a/radio/src/logs.cpp +++ b/radio/src/logs.cpp @@ -275,7 +275,7 @@ void logsWrite() } if (isFunctionActive(FUNCTION_LOGS) && logDelay100ms > 0) { - #if defined(SIMU) + #if defined(SIMU) || !defined(RTCLOCK) tmr10ms_t tmr10ms = get_tmr10ms(); // tmr10ms works in 10ms increments if (lastLogTime == 0 || (tmr10ms_t)(tmr10ms - lastLogTime) >= (tmr10ms_t)(logDelay100ms*10)-1) { lastLogTime = tmr10ms;