File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,10 @@ static int background_prevention_count;
6161void PLACE_IN_ITCM (background_callback_run_all )(void ) {
6262 port_background_task ();
6363 if (!background_callback_pending ()) {
64+ // TEMPORARY to fix #10822
65+ #ifdef __ZEPHYR__
6466 port_yield ();
67+ #endif
6568 return ;
6669 }
6770 CALLBACK_CRITICAL_BEGIN ;
@@ -88,7 +91,10 @@ void PLACE_IN_ITCM(background_callback_run_all)(void) {
8891 }
8992 -- background_prevention_count ;
9093 CALLBACK_CRITICAL_END ;
94+ // TEMPORARY to fix #10822
95+ #ifdef __ZEPHYR__
9196 port_yield ();
97+ #endif
9298}
9399
94100void background_callback_prevent (void ) {
Original file line number Diff line number Diff line change @@ -82,7 +82,10 @@ safe_mode_t wait_for_safe_mode_reset(void) {
8282 boot_in_safe_mode = true;
8383 break ;
8484 }
85+ // TEMPORARY to fix #10822
86+ #ifdef __ZEPHYR__
8587 port_yield ();
88+ #endif
8689 diff = supervisor_ticks_ms64 () - start_ticks ;
8790 }
8891 #if CIRCUITPY_STATUS_LED
You can’t perform that action at this time.
0 commit comments