log output of subprocess.run on reset for real though

This commit is contained in:
matt committed 2026-10-16 22:04:08 -07:00
1 parent 3ff878872a
commit 6866f5e4d3
1 file changed
+2 -2
+2 -2
View File
@@ -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. ")