From 6866f5e4d38af0d52e8a8450a5522b876d0066ee Mon Sep 17 00:00:00 2001 From: matt Date: Fri, 16 Oct 2026 22:04:08 -0700 Subject: [PATCH] log output of subprocess.run on reset for real though --- api/ble.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/ble.py b/api/ble.py index cc6a867..d54ed2f 100644 --- a/api/ble.py +++ b/api/ble.py @@ -222,8 +222,8 @@ def read_data_sync(mac: str) -> Optional[SensorReading]: # --------------------------------------------------------------------------- # def reset_adapter(): log.info("Restting BT Adapter...") - log.info(subprocess.run(["sudo", "rfkill", "block", "bluetooth"], check=True)) - log.info(subprocess.run(["sudo", "rfkill", "unblock", "bluetooth"], check=True)) + log.info(subprocess.run(["sudo", "rfkill", "block", "bluetooth"], capture_output=True, text=True, check=True).stdout) + log.info(subprocess.run(["sudo", "rfkill", "unblock", "bluetooth"], capture_output=True, text=True, check=True).stdout) time.sleep(5) log.info("Reset complete. ")