Use suggested sleep time for display thread

This commit is contained in:
Hendrik Sauer 2021-06-22 15:54:08 +02:00 committed by Patrick Rathje
parent 634444e1ef
commit d70a5ab412
1 changed files with 3 additions and 2 deletions

View File

@ -57,10 +57,11 @@ int get_risk_contacts() {
#ifdef DISPLAY
void display_thread(void* arg1, void* arg2, void* arg3) {
static uint32_t sleep_time;
while (1) {
lv_task_handler();
sleep_time = lv_task_handler();
update_display();
k_msleep(10);
k_msleep(sleep_time);
}
}