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

Commit 04856102 authored by Daniel Jacob Chittoor's avatar Daniel Jacob Chittoor Committed by Jackeagle
Browse files

Increase retry and flash cooldown delays

parent ca1c3c8c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -165,7 +165,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) {