diff --git a/src/main/blackbox/blackbox.c b/src/main/blackbox/blackbox.c index 2950f9090..f6bda3af3 100644 --- a/src/main/blackbox/blackbox.c +++ b/src/main/blackbox/blackbox.c @@ -1669,16 +1669,15 @@ void blackboxUpdate(timeUs_t currentTimeUs) #ifdef USE_FLASHFS if (blackboxState != BLACKBOX_STATE_ERASING && blackboxState != BLACKBOX_STATE_START_ERASE - && blackboxState != BLACKBOX_STATE_ERASED) { + && blackboxState != BLACKBOX_STATE_ERASED) #endif + { blackboxSetState(BLACKBOX_STATE_STOPPED); // ensure we reset the test mode flag if we stop due to full memory card if (startedLoggingInTestMode) { startedLoggingInTestMode = false; } -#ifdef USE_FLASHFS } -#endif } else { // Only log in test mode if there is room! switch (blackboxConfig()->mode) { case BLACKBOX_MODE_MOTOR_TEST: diff --git a/src/main/fc/fc_tasks.c b/src/main/fc/fc_tasks.c index c9e057952..cd73fc6f5 100644 --- a/src/main/fc/fc_tasks.c +++ b/src/main/fc/fc_tasks.c @@ -367,7 +367,7 @@ cfTask_t cfTasks[TASK_COUNT] = { .taskName = "SYSTEM", .subTaskName = "UPDATE", .taskFunc = taskMain, - .desiredPeriod = TASK_PERIOD_HZ(100), + .desiredPeriod = TASK_PERIOD_HZ(1000), .staticPriority = TASK_PRIORITY_MEDIUM_HIGH, },