fix: Radios without RTCLOCK need tmr10ms also

Fix bug introduced in #1967 which only affects !defined(RTCLOCK) boards
This commit is contained in:
Peter Feerick
2022-08-16 18:44:57 +10:00
committed by Peter Feerick
parent 299991bc11
commit d0b693a8dc
+1 -1
View File
@@ -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;