log output of subprocess.run on reset

This commit is contained in:
matt committed 2026-10-16 22:00:39 -07:00
1 parent 5a6ebadd3f
commit 3ff878872a
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...")
subprocess.run(["sudo", "rfkill", "block", "bluetooth"], check=True)
subprocess.run(["sudo", "rfkill", "unblock", "bluetooth"], check=True)
log.info(subprocess.run(["sudo", "rfkill", "block", "bluetooth"], check=True))
log.info(subprocess.run(["sudo", "rfkill", "unblock", "bluetooth"], check=True))
time.sleep(5)
log.info("Reset complete. ")