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:
@@ -454,7 +454,7 @@ app = FastAPI(title="HeadMic", description="Vixy's Ears 🦊👂 (Dual XVF3800)"
|
|||||||
|
|
||||||
@app.on_event("startup")
|
@app.on_event("startup")
|
||||||
async def 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
|
state.running = True
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user