From 41ebf59964d2e352c3c0a78135a552eb1f458302 Mon Sep 17 00:00:00 2001 From: Smittix Date: Thu, 8 Jan 2026 12:15:14 +0000 Subject: [PATCH] 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 --- routes/sensor.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/routes/sensor.py b/routes/sensor.py index ff4ca06..87eb2af 100644 --- a/routes/sensor.py +++ b/routes/sensor.py @@ -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