From 5c06fb36a51ba2f821761bf06be8e6b579e09832 Mon Sep 17 00:00:00 2001 From: matt Date: Fri, 16 Oct 2026 22:16:50 -0700 Subject: [PATCH] rfkill bluetooth has no output so not gonna print it --- api/ble.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/ble.py b/api/ble.py index e7263d9..0a902b6 100644 --- a/api/ble.py +++ b/api/ble.py @@ -224,9 +224,9 @@ def read_data_sync(mac: str) -> Optional[SensorReading]: # --------------------------------------------------------------------------- # def reset_adapter(): log.info("Restting BT Adapter...") - log.info(subprocess.run(["sudo", "rfkill", "block", "bluetooth"], capture_output=True, text=True, check=True).stdout) + subprocess.run(["sudo", "rfkill", "block", "bluetooth"], capture_output=True, text=True, check=True) time.sleep(2) - log.info(subprocess.run(["sudo", "rfkill", "unblock", "bluetooth"], capture_output=True, text=True, check=True).stdout) + subprocess.run(["sudo", "rfkill", "unblock", "bluetooth"], capture_output=True, text=True, check=True) time.sleep(5) log.info("Reset complete. ")