소스 검색

Merge branch 'bugfix/increase_erase_timeout' into 'master'

Increased FLASH erase timeout

See merge request espressif/esp-serial-flasher!25
Martin Válik 5 년 전
부모
커밋
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