Skip to content

Commit

Permalink
fix: Radios without RTCLOCK need tmr10ms also
Browse files Browse the repository at this point in the history
Fix bug introduced in #1967 which only affects !defined(RTCLOCK) boards
  • Loading branch information
pfeerick committed Aug 5, 2022
1 parent a41fb7f commit b1ac8d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion radio/src/logs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b1ac8d1

Please sign in to comment.