Loading
Reconnect USB session on flash timeout before retry
After a flash timeout, resetDevice() alone may not be enough to recover a degraded USB session (seen on AMD Ryzen with Mediatek devices). Add reconnectDevice() which fully tears down the USB session (releaseInterface + close) then re-establishes the connection, giving a clean pipe for the retry. Also increase flash retry delay from 3s to 5s and add detailed logging with elapsed times throughout the flash retry flow.