From 9611a8189858046f3adae68a996ac6eed661f8a5 Mon Sep 17 00:00:00 2001 From: Pol Henarejos Date: Mon, 1 Jun 2026 13:17:10 +0200 Subject: [PATCH] Add core0 loop yield hint --- src/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.c b/src/main.c index d94e869..89385c7 100644 --- a/src/main.c +++ b/src/main.c @@ -132,6 +132,10 @@ static void core0_loop(void *arg) { hwrng_task(); flash_task(); button_task(); +#ifdef PICO_PLATFORM + // Avoid a pure busy loop on core0; gives the system a scheduling hint. + tight_loop_contents(); +#endif #ifdef ESP_PLATFORM vTaskDelay(pdMS_TO_TICKS(10)); #endif