log output of subprocess.run on reset for real though
This commit is contained in:
1 parent
3ff878872a
commit
6866f5e4d3
1 file changed
+2
-2
+2
-2
@@ -222,8 +222,8 @@ def read_data_sync(mac: str) -> Optional[SensorReading]:
|
|||||||
# --------------------------------------------------------------------------- #
|
# --------------------------------------------------------------------------- #
|
||||||
def reset_adapter():
|
def reset_adapter():
|
||||||
log.info("Restting BT Adapter...")
|
log.info("Restting BT Adapter...")
|
||||||
log.info(subprocess.run(["sudo", "rfkill", "block", "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"], check=True))
|
log.info(subprocess.run(["sudo", "rfkill", "unblock", "bluetooth"], capture_output=True, text=True, check=True).stdout)
|
||||||
time.sleep(5)
|
time.sleep(5)
|
||||||
log.info("Reset complete. ")
|
log.info("Reset complete. ")
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user