Loading
Fix off-by-one error in flash retry counter
The retry logic used a 0-indexed retryCount but compared against MAX_RETRIES with < operator, causing 4 attempts instead of 3: [DEBUG] Timeout on flashblob > boot_a (attempt 1/3) [DEBUG] Timeout on flashblob > boot_a (attempt 2/3) [DEBUG] Timeout on flashblob > boot_a (attempt 3/3) [DEBUG] Timeout on flashblob > boot_a (attempt 4/3) <-- should not happen The issue: - retryCount=0: "1/3", 0 < 3 true → retry - retryCount=1: "2/3", 1 < 3 true → retry - retryCount=2: "3/3", 2 < 3 true → retry - retryCount=3: "4/3", 3 < 3 false → throw Rename retryCount to attempt (1-indexed) so the counter matches the displayed value and MAX_ATTEMPTS reflects actual attempt count.