1
0
Fork 0
mirror of https://github.com/dbarzin/pandora-box.git synced 2025-07-19 13:29:42 +02:00
This commit is contained in:
dbarzin 2023-03-13 11:10:34 +01:00
parent 567f44f5b5
commit cfde07c9c6

View file

@ -602,6 +602,8 @@ def scan():
def wait():
"""Wait for insert of remove of USB device"""
# handle error - first unmount the device
umount_device()
# Loop
context = pyudev.Context()
monitor = pyudev.Monitor.from_netlink(context)
@ -719,7 +721,7 @@ def clean():
break
# wait for clean
log('PRESS KEY TO CLEAN', flush=True)
screen.getch()
wait_mouse_click()
# TODO: check device is still present