log output of subprocess.run on reset
This commit is contained in:
1 parent
5a6ebadd3f
commit
3ff878872a
1 file changed
+2
-2
+2
-2
@@ -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. ")
|
||||
|
||||
|
||||
Reference in new issue
Block a user