Increased task frequency for the main task.
This commit is contained in:
parent
ad9a06289f
commit
40f0c87906
|
@ -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:
|
||||
|
|
|
@ -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,
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue