Fixed Initial GUI rendering with an empty state

replace/0c76c09f5d8293b63c20e91067ed63819cfe70e7
Federico Amedeo Izzo 2021-06-05 16:32:05 +02:00
rodzic c653535e68
commit f5a70b3e43
1 zmienionych plików z 4 dodań i 3 usunięć

Wyświetl plik

@ -62,11 +62,12 @@ void *ui_task(void *arg)
rtxStatus_t rtx_cfg;
// Get initial state local copy
// OSMutexPend(&state_mutex, 0u, OS_OPT_PEND_BLOCKING, 0u, &os_err);
// OSMutexPost(&state_mutex, OS_OPT_POST_NONE, &os_err);
pthread_mutex_lock(&state_mutex);
ui_saveState();
pthread_mutex_unlock(&state_mutex);
// Initial GUI draw
ui_updateGUI(last_state);
ui_updateGUI();
gfx_render();
while(1)