Fix refresh stats scheduling
This commit is contained in:
parent
f5ee6cfd08
commit
d492257f41
|
@ -893,6 +893,9 @@ static uint8_t osdShowStats(int statsRowCount)
|
|||
|
||||
static void osdRefreshStats(void)
|
||||
{
|
||||
// Non-flight operation which takes a little longer than normal
|
||||
schedulerIgnoreTaskExecTime();
|
||||
|
||||
displayClearScreen(osdDisplayPort);
|
||||
if (osdStatsRowCount == 0) {
|
||||
// No stats row count has been set yet.
|
||||
|
|
|
@ -169,9 +169,9 @@ extern "C" {
|
|||
|
||||
TEST(SchedulerUnittest, SetupTasks)
|
||||
{
|
||||
for (int i = 0; i < TASK_COUNT; ++i) {
|
||||
tasks[i].id = &task_ids[i];
|
||||
}
|
||||
for (int i = 0; i < TASK_COUNT; ++i) {
|
||||
tasks[i].id = &task_ids[i];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue