increase timeout for mtp hil test

This commit is contained in:
hathach
2025-10-11 14:57:47 +07:00
parent 87523f2494
commit b5faf4f1c1

View File

@@ -141,7 +141,8 @@ def read_disk_file(uid, lun, fname):
def open_mtp_dev(uid):
mtp = MTP()
timeout = ENUM_TIMEOUT
# MTP seems to take a while to enumerate
timeout = 2*ENUM_TIMEOUT
while timeout > 0:
# run_cmd(f"gio mount -u mtp://TinyUsb_TinyUsb_Device_{uid}/")
for raw in mtp.detect_devices():