Loading
Improve flash reliability with delays and checks
Flash operations can timeout due to USB instability or device not being ready. The current retry logic retries immediately, which often fails again if the device needs time to stabilize. bootloader.class.js: - Add pre-flash device connection check - Add 1 second delay between retries to let device recover - Check device connection before each retry attempt - Log flash size for debugging - Improve error messages with troubleshooting hints controller.manager.js: - Add 500ms cooldown after each flash operation to prevent overwhelming the device with rapid successive writes These changes reduce timeout likelihood by giving the device time to process each operation. The root cause (library timeout threshold) may still need investigation in @e/fastboot, but these mitigations improve real-world reliability.