From 9363494c3fe910cc05d1f535a42726284cee52aa Mon Sep 17 00:00:00 2001 From: CTCaer Date: Sat, 28 Aug 2021 20:08:08 +0300 Subject: [PATCH] nyx: lower launch priority for ums boot This fixes the backlight not being dimmed if UMS is launched from boot --- nyx/nyx_gui/frontend/gui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nyx/nyx_gui/frontend/gui.c b/nyx/nyx_gui/frontend/gui.c index d6b496b..6b739c8 100644 --- a/nyx/nyx_gui/frontend/gui.c +++ b/nyx/nyx_gui/frontend/gui.c @@ -2218,7 +2218,7 @@ static void _nyx_main_menu(lv_theme_t * th) if (nyx_str->cfg & NYX_CFG_UMS) { nyx_str->cfg &= ~(NYX_CFG_UMS); - lv_task_t *task_run_ums = lv_task_create(nyx_run_ums, LV_TASK_ONESHOT, LV_TASK_PRIO_MID, (void *)&nyx_str->cfg); + lv_task_t *task_run_ums = lv_task_create(nyx_run_ums, LV_TASK_ONESHOT, LV_TASK_PRIO_LOWEST, (void *)&nyx_str->cfg); lv_task_once(task_run_ums); } else if (n_cfg.home_screen)