yeswolf wants to merge 1 commit from /u/yeswolf/dfu-util/ to master, 2024-03-17
Recently I had an issue on macOS Big Sur when I wasn't able to flash the DFU firmware using the dfu-util. Same version of dfu-util with the same firmware worked on Windows. After a big of investigation I found that that's because of the timeout during the erase operation. I think it would be great to have such option to allow user to modify the operation timeout and be able to use the tool without the code modification.
The 5 seconds timeout is for USB requests. They should never take longer, otherwise it is a major bug in the bootloader. If the device needs long time for an operation, it should still respond quickly, but set an appropriate bwPollTimeout value to tell dfu-util how long it should wait before carrying on.