boot cfg: Allow Launching UMS from boot.
By using `BOOT_CFG_AUTOBOOT_EN` in `boot_cfg` and `EXTRA_CFG_NYX_UMS` in `extra_cfg` you can launch UMS from boot. The `ums` variable must be populated with one of the following: ``` NYX_UMS_SD_CARD 0 NYX_UMS_EMMC_BOOT0 1 NYX_UMS_EMMC_BOOT1 2 NYX_UMS_EMMC_GPP 3 NYX_UMS_EMUMMC_BOOT0 4 NYX_UMS_EMUMMC_BOOT1 5 NYX_UMS_EMUMMC_GPP 6 ```
This commit is contained in:
@@ -1978,6 +1978,12 @@ static void _nyx_main_menu(lv_theme_t * th)
|
||||
lv_task_t *task_run_dump = lv_task_create(sept_run_dump, LV_TASK_ONESHOT, LV_TASK_PRIO_MID, NULL);
|
||||
lv_task_once(task_run_dump);
|
||||
}
|
||||
else 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_once(task_run_ums);
|
||||
}
|
||||
}
|
||||
|
||||
void nyx_load_and_run()
|
||||
|
||||
Reference in New Issue
Block a user