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

Unverified Commit 92f2bc17 authored by Danny Lin's avatar Danny Lin
Browse files

fastboot: Increase getvar timeout to 10 seconds

This should be enough time to accomodate for slow flashing on the Pixel
2 (walleye) where the flash command returns immediately. It also matches
the timeout used by Google's Android Flash Tool.

Fixes: WEBINSTALL-1A
parent 62dc94a6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -13,7 +13,7 @@ const DEFAULT_DOWNLOAD_SIZE = 512 * 1024 * 1024; // 512 MiB
// max download size even if the bootloader can accept more data.
const MAX_DOWNLOAD_SIZE = 1024 * 1024 * 1024; // 1 GiB

const GETVAR_TIMEOUT = 2500; // ms
const GETVAR_TIMEOUT = 10000; // ms

/**
 * Exception class for USB errors not directly thrown by WebUSB.