1
0
Fork 0
mirror of https://github.com/dbarzin/pandora-box.git synced 2025-07-19 05:19:40 +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(): def wait():
"""Wait for insert of remove of USB device""" """Wait for insert of remove of USB device"""
# handle error - first unmount the device
umount_device()
# Loop # Loop
context = pyudev.Context() context = pyudev.Context()
monitor = pyudev.Monitor.from_netlink(context) monitor = pyudev.Monitor.from_netlink(context)
@ -719,7 +721,7 @@ def clean():
break break
# wait for clean # wait for clean
log('PRESS KEY TO CLEAN', flush=True) log('PRESS KEY TO CLEAN', flush=True)
screen.getch() wait_mouse_click()
# TODO: check device is still present # TODO: check device is still present