Fix missing log steps at 0.1s period (#1967)

fixed issued where log steps would be missed due to 10ms timer resolution
- simulator: allow for one get_tmr10ms() tick (10ms) deviation
- radio: switched to FreeRTOS software timer at user requested period

code cleanup
log.cpp: made variable lastLogTime static
log.cpp: deleted unused variable g_logError
functions.cpp, logs.cpp, sdcard.h: renamed variable logDelay to logDelay100ms to show it is scaled to 100ms increments
This commit is contained in:
Michael
2022-06-27 20:12:47 +02:00
committed by GitHub
parent 8f4de79047
commit ce8cc0b540
4 changed files with 87 additions and 11 deletions
+1 -1
View File
@@ -350,7 +350,7 @@ void evalFunctions(const CustomFunctionData * functions, CustomFunctionsContext
case FUNC_LOGS:
if (CFN_PARAM(cfn)) {
newActiveFunctions |= (1u << FUNCTION_LOGS);
logDelay = CFN_PARAM(cfn);
logDelay100ms = CFN_PARAM(cfn); // logging period is 0..25.5s in 100ms increments
}
break;
#endif