Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e2a4802a authored by Daniel Jacob Chittoor's avatar Daniel Jacob Chittoor
Browse files

Increase retry and flash cooldown delays

parent 4bc6fc52
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -160,7 +160,7 @@ export class Controller {
      case Command.CMD_TYPE.erase:
        return this.deviceManager.erase(cmd.partition);
      case Command.CMD_TYPE.flash: {
        const FLASH_COOLDOWN_MS = 500; // Brief pause after flash to let device stabilize
        const FLASH_COOLDOWN_MS = 5000; // Pause after flash to let device stabilize
        const result = await this.deviceManager.flash(
          cmd.file,
          cmd.partition,
+1 −1
Original line number Diff line number Diff line
@@ -74,7 +74,7 @@ export class Bootloader extends Device {

  async flashBlob(partition, blob, onProgress, retryCount = 0) {
    const MAX_RETRIES = 3;
    const RETRY_DELAY_MS = 1000; // Wait before retry to let device stabilize
    const RETRY_DELAY_MS = 3000; // Wait before retry to let device stabilize

    // Pre-flash check: ensure device is still connected
    if (!this.device.isConnected) {