Increased task frequency for the main task.

This commit is contained in:
mikeller 2018-06-17 12:23:20 +12:00
parent ad9a06289f
commit 40f0c87906
2 changed files with 3 additions and 4 deletions

View File

@ -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:

View File

@ -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,
},