From 2968d57e1d7903a4becdd5251cacd8055e00cb84 Mon Sep 17 00:00:00 2001 From: David Gwilliam Date: Wed, 24 Jun 2026 04:57:14 -0700 Subject: [PATCH] fix: add Bridge.run() to loop() so MCU processes incoming RPCs Without Bridge.run() in loop(), the MCU never reads incoming draw_frame requests from the router. First frame goes through during setup handshake, but subsequent frames fill the router's send buffer and the viz stalls. --- justfile | 3 ++- sketch/sketch.ino | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/justfile b/justfile index 0265aa3..bb47938 100644 --- a/justfile +++ b/justfile @@ -342,7 +342,8 @@ kconfig: flash-sketch: @ssh {{SSH_OPTS}} "{{BOARD_USER}}@{{BOARD_HOST}}" "\ cd {{REPO_DIR}} && \ - arduino-cli compile --upload --fqbn arduino:zephyr:unoq sketch/" + INCS=\$(find /home/arduino/Arduino/libraries -type d -not -path '*/Arduino_RouterBridge*' -not -path '*/Arduino_RPClite*' 2>/dev/null | sort -u | sed 's/^/-I/' | tr '\n' ' ') && \ + arduino-cli compile --upload --fqbn arduino:zephyr:unoq --build-property \"build.extra_flags=\$INCS\" sketch/" # Validate all .pd files using Conftest/OPA Rego policies validate: diff --git a/sketch/sketch.ino b/sketch/sketch.ino index 9d74673..2d938ea 100644 --- a/sketch/sketch.ino +++ b/sketch/sketch.ino @@ -121,5 +121,6 @@ void setup() { } void loop() { - delay(1000); + Bridge.run(); + delay(1); }