Merge pull request #3297 from hathach/hil-increase-timeout-for-mtp

increase timeout for mtp hil test
This commit is contained in:
Ha Thach
2025-10-11 15:39:30 +07:00
committed by GitHub

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():