Explorar o código

Increased FLASH erase timeout

Martin Valik %!s(int64=5) %!d(string=hai) anos
pai
achega
93a6a56f54
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/esp_loader.c

+ 1 - 1
src/esp_loader.c

@@ -31,7 +31,7 @@
 
 static const uint32_t DEFAULT_TIMEOUT = 1000;
 static const uint32_t DEFAULT_FLASH_TIMEOUT = 3000;       // timeout for most flash operations
-static const uint32_t ERASE_REGION_TIMEOUT_PER_MB = 3000; // timeout (per megabyte) for erasing a region
+static const uint32_t ERASE_REGION_TIMEOUT_PER_MB = 10000; // timeout (per megabyte) for erasing a region
 static const uint8_t  PADDING_PATTERN = 0xFF;
 
 #define MEGABYTE  1024 * 1024