set timeout in usb_control_msg to USB_COMMAND_TIMEOUT instead of a full second.
Attach a file by drag & drop or click to upload