Skip to content

Commit 079df56

Browse files
Lawrence NahumJamie C. Driver
authored andcommitted
display: flush after init to make sure the display is cleared on boot
1 parent 80bb5a7 commit 079df56

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

main/gui.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2301,6 +2301,12 @@ static bool update_updateables(void)
23012301
// gui task, for managing display/activities
23022302
static void gui_task(void* args)
23032303
{
2304+
// Flush/clear display as soon as we're able
2305+
JADE_SEMAPHORE_TAKE(gui_mutex);
2306+
display_flush();
2307+
JADE_SEMAPHORE_GIVE(gui_mutex);
2308+
2309+
// Loop to periodically handle gui events
23042310
const TickType_t period = 1000 / GUI_TARGET_FRAMERATE / portTICK_PERIOD_MS;
23052311
TickType_t last_wake = xTaskGetTickCount();
23062312

0 commit comments

Comments
 (0)