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) <noreply@anthropic.com>
This commit is contained in:
Alex
2026-04-12 17:31:38 -05:00
parent f4452865d1
commit 0ace58e22e

View File

@@ -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