Commit 079982a6 authored by Rahix's avatar Rahix

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

Signed-off-by: Rahix's avatarRahix <rahix@rahix.de>
parent 0b845e99
......@@ -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();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment