Просмотр исходного кода

Merge branch 'bugfix/increase_erase_timeout' into 'master'

Increased FLASH erase timeout

See merge request espressif/esp-serial-flasher!25
Martin Válik 5 лет назад
Родитель
Сommit
def31359f6
1 измененных файлов с 1 добавлено и 1 удалено
  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