big reset test 1a
This commit is contained in:
1 parent
df2c6122a4
commit
a68854c4b9
1 file changed
+1
-1
+1
-1
@@ -236,7 +236,7 @@ def read_data_sync(mac: str) -> Optional[SensorReading]:
|
|||||||
def reset_adapter(big_reset = False):
|
def reset_adapter(big_reset = False):
|
||||||
log.info("Restting BT Adapter...")
|
log.info("Restting BT Adapter...")
|
||||||
if big_reset:
|
if big_reset:
|
||||||
log.warning("Doing big reset - USB ID {current_usb_id}")
|
log.warning(f"Doing big reset - USB ID {current_usb_id}")
|
||||||
log.info(subprocess.run(["usbreset", current_usb_id], capture_output=True, text=True, check=True).stdout.strip())
|
log.info(subprocess.run(["usbreset", current_usb_id], capture_output=True, text=True, check=True).stdout.strip())
|
||||||
time.sleep(2)
|
time.sleep(2)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in new issue
Block a user