Remove bufsize=1 from sensor subprocess

Line buffering only works with text mode, not binary pipes.
Fixes RuntimeWarning about line buffering.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Smittix
2026-01-08 12:15:14 +00:00
parent a5e9a3e1ce
commit 41ebf59964

View File

@@ -130,8 +130,7 @@ def start_sensor() -> Response:
app_module.sensor_process = subprocess.Popen(
cmd,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
bufsize=1
stderr=subprocess.PIPE
)
# Start output thread