fix: Radios without RTCLOCK need tmr10ms also
Fix bug introduced in #1967 which only affects !defined(RTCLOCK) boards
This commit is contained in:
committed by
Peter Feerick
parent
299991bc11
commit
d0b693a8dc
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user