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. ")