From 340ea3ec0ab6a1a127f6187b34f6a577b3542a91 Mon Sep 17 00:00:00 2001 From: David Gwilliam Date: Wed, 24 Jun 2026 05:24:20 -0700 Subject: [PATCH] fix: reduce loop delay to 10ms so __loopHook processes RPCs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Background thread stack (500 bytes) overflows after ~50 draw_frame calls. __loopHook (called after loop() returns) is the fallback. With delay(1000), it ran once per second — too slow. Reducing to delay(10) keeps RPC processing responsive. --- sketch/sketch.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sketch/sketch.ino b/sketch/sketch.ino index 9d74673..0d41cc7 100644 --- a/sketch/sketch.ino +++ b/sketch/sketch.ino @@ -121,5 +121,5 @@ void setup() { } void loop() { - delay(1000); + delay(10); }