Skip to content
Snippets Groups Projects
Commit 079982a6 authored by rahix's avatar rahix
Browse files

fix(lifecycle): Don't trigger a reset during startup


Signed-off-by: default avatarRahix <rahix@rahix.de>
parent 0b845e99
Branches
No related tags found
No related merge requests found
......@@ -355,9 +355,17 @@ void vLifecycleTask(void *pvParameters)
mutex_unlock(&core1_mutex);
/* If `main.py` exists, start it. Otherwise, start `menu.py`. */
if (epic_exec("main.py") < 0) {
return_to_menu();
/*
* If `main.py` exists, start it. Otherwise, start `menu.py`.
*
* We are not using epic_exec() & return_to_menu() here because those
* trigger a reset which is undesirable during startup.
*/
mutex_lock(&core1_mutex);
int ret = load_sync("main.py", false);
mutex_unlock(&core1_mutex);
if (ret < 0) {
load_menu(false);
}
hardware_init();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment