Call reset multicore before launching the thread.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos 2024-08-30 00:33:31 +02:00
parent 4cf8d77609
commit e8b060abb3
No known key found for this signature in database
GPG key ID: C0095B7870A4CCD3

View file

@ -119,6 +119,7 @@ void card_start(uint8_t itf, void (*func)(void)) {
card_exit();
}
if (func) {
multicore_reset_core1();
multicore_launch_core1(func);
}
led_set_blink(BLINK_MOUNTED);
@ -148,7 +149,6 @@ void card_exit() {
#endif
}
led_set_blink(BLINK_SUSPENDED);
multicore_reset_core1();
#ifdef ESP_PLATFORM
hcore1 = NULL;
#endif