mirror of
https://github.com/polhenarejos/pico-keys-sdk
synced 2026-05-28 17:11:23 +02:00
Call reset multicore before launching the thread.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user