Bsongis/issue 7156 (#7160)

Fixes #7156
This commit is contained in:
Bertrand Songis
2019-12-06 16:27:07 +01:00
committed by GitHub
parent b334e1845d
commit 98c123ef8b
6 changed files with 45 additions and 40 deletions
+4
View File
@@ -197,6 +197,10 @@ void logsWrite()
{
static const char * error_displayed = nullptr;
if (!sdMounted()) {
return;
}
if (isFunctionActive(FUNCTION_LOGS) && logDelay > 0) {
tmr10ms_t tmr10ms = get_tmr10ms();
if (lastLogTime == 0 || (tmr10ms_t)(tmr10ms - lastLogTime) >= (tmr10ms_t)logDelay*10) {