Files
linux-voice-assistant/linux_voice_assistant
imonlinux 67abca1111 Update xvf3800_button_controller.py
Summary

Add USB context manager support and optimize polling interval

Problem

Missing context manager: USB resources could leak on exceptions
Aggressive polling: 100 Hz (10ms) unnecessarily high for human button presses
Changes

Context Manager Support (Critical Fix B)

Added __enter__ and __exit__ methods to XVF3800USBClient class
Enhanced close() with proper null checks and error handling
Enables safe with statement usage
Polling Optimization (Critical Fix C)

Changed default poll_interval_seconds from 0.01 to 0.05 (100 Hz → 20 Hz)
Updated XVF3800ButtonRuntimeConfig dataclass default
Updated fallback default in __init__ constructor
2026-01-10 13:25:29 -08:00
..
2025-08-26 09:30:58 -05:00
2026-01-06 13:37:00 -08:00
2025-11-18 15:15:46 -08:00
2026-01-10 13:23:33 -08:00
2026-01-06 13:35:52 -08:00
2025-11-17 17:42:40 -08:00
2026-01-06 13:46:32 -08:00
2026-01-06 13:36:28 -08:00
2025-12-11 18:47:01 -08:00
2025-11-17 21:50:53 -08:00
2026-01-01 15:16:13 -08:00
2025-11-29 14:38:13 -08:00
2026-01-05 21:52:41 -08:00
2026-01-01 15:17:41 -08:00
2025-11-29 23:43:08 -08:00
2025-11-21 17:17:56 -08:00
2025-11-19 18:46:05 -08:00