From 7bb0c022560d9c6a3535b5d5d6a28ecb533d87cd Mon Sep 17 00:00:00 2001 From: Dan Halbert Date: Mon, 16 Feb 2026 14:46:58 -0500 Subject: [PATCH 1/2] add port_yield from #10795 only on zephyr to fix #10822 --- supervisor/shared/background_callback.c | 6 ++++++ supervisor/shared/safe_mode.c | 3 +++ 2 files changed, 9 insertions(+) diff --git a/supervisor/shared/background_callback.c b/supervisor/shared/background_callback.c index 02aa9ae84d561..79b18f7a13753 100644 --- a/supervisor/shared/background_callback.c +++ b/supervisor/shared/background_callback.c @@ -61,7 +61,10 @@ static int background_prevention_count; void PLACE_IN_ITCM(background_callback_run_all)(void) { port_background_task(); if (!background_callback_pending()) { + // TEMPORARY to fix #10822 + #ifdef __ZEPHYR__ port_yield(); + #endif return; } CALLBACK_CRITICAL_BEGIN; @@ -88,7 +91,10 @@ void PLACE_IN_ITCM(background_callback_run_all)(void) { } --background_prevention_count; CALLBACK_CRITICAL_END; + // TEMPORARY to fix #10822 + #ifdef __ZEPHYR__ port_yield(); + #endif } void background_callback_prevent(void) { diff --git a/supervisor/shared/safe_mode.c b/supervisor/shared/safe_mode.c index 9650556546030..bfe27ac7c6513 100644 --- a/supervisor/shared/safe_mode.c +++ b/supervisor/shared/safe_mode.c @@ -82,7 +82,10 @@ safe_mode_t wait_for_safe_mode_reset(void) { boot_in_safe_mode = true; break; } + // TEMPORARY to fix #10822 + #ifdef __ZEPHYR__ port_yield(); + #endif diff = supervisor_ticks_ms64() - start_ticks; } #if CIRCUITPY_STATUS_LED From f4cc5f5a7aff7a5fa4dd6a66e36bfd85162dcad7 Mon Sep 17 00:00:00 2001 From: Dan Halbert Date: Mon, 16 Feb 2026 16:07:03 -0500 Subject: [PATCH 2/2] shrink pygamer --- ports/atmel-samd/boards/pygamer/mpconfigboard.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/ports/atmel-samd/boards/pygamer/mpconfigboard.mk b/ports/atmel-samd/boards/pygamer/mpconfigboard.mk index 19fa4f19b9de6..0c6f16f8b6381 100644 --- a/ports/atmel-samd/boards/pygamer/mpconfigboard.mk +++ b/ports/atmel-samd/boards/pygamer/mpconfigboard.mk @@ -12,6 +12,7 @@ LONGINT_IMPL = MPZ CIRCUITPY_AESIO = 0 CIRCUITPY_FLOPPYIO = 0 +CIRCUITPY_EPAPERDISPLAY = 0 CIRCUITPY_FRAMEBUFFERIO = 0 CIRCUITPY_GIFIO = 0 CIRCUITPY_I2CDISPLAYBUS = 0