1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-26 01:35:41 +03:00

Fix refresh stats scheduling

This commit is contained in:
Steve Evans 2022-01-05 21:32:31 +00:00
parent f5ee6cfd08
commit d492257f41
2 changed files with 6 additions and 3 deletions

View file

@ -893,6 +893,9 @@ static uint8_t osdShowStats(int statsRowCount)
static void osdRefreshStats(void) static void osdRefreshStats(void)
{ {
// Non-flight operation which takes a little longer than normal
schedulerIgnoreTaskExecTime();
displayClearScreen(osdDisplayPort); displayClearScreen(osdDisplayPort);
if (osdStatsRowCount == 0) { if (osdStatsRowCount == 0) {
// No stats row count has been set yet. // No stats row count has been set yet.

View file

@ -169,9 +169,9 @@ extern "C" {
TEST(SchedulerUnittest, SetupTasks) TEST(SchedulerUnittest, SetupTasks)
{ {
for (int i = 0; i < TASK_COUNT; ++i) { for (int i = 0; i < TASK_COUNT; ++i) {
tasks[i].id = &task_ids[i]; tasks[i].id = &task_ids[i];
} }
} }