From 0ace58e22e0071f6fa04ca4e3e5e3ad8d5008b2f Mon Sep 17 00:00:00 2001 From: Alex Date: Sun, 12 Apr 2026 17:31:38 -0500 Subject: [PATCH] Fix spatial_tracker not visible to doa_track_loop (missing global) startup() assigned spatial_tracker as a local variable instead of updating the module-level global. doa_track_loop saw None. Co-Authored-By: Claude Opus 4.6 (1M context) --- headmic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/headmic.py b/headmic.py index a5f1c48..e433d4c 100644 --- a/headmic.py +++ b/headmic.py @@ -454,7 +454,7 @@ app = FastAPI(title="HeadMic", description="Vixy's Ears 🦊👂 (Dual XVF3800)" @app.on_event("startup") async def startup(): - global sound_classifier, sound_ring_buffer, speaker_recognizer, dual_stream, LEDS_AVAILABLE + global sound_classifier, sound_ring_buffer, speaker_recognizer, dual_stream, LEDS_AVAILABLE, spatial_tracker state.running = True