소스 검색

Fix bug calculating time for MD5
Closes https://github.com/espressif/esp-serial-flasher/pull/19

Nathan Phillips 5 년 전
부모
커밋
d411ab137c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/esp_loader.c

+ 1 - 1
src/esp_loader.c

@@ -78,7 +78,7 @@ static inline void md5_final(uint8_t digets[16]) { }
 
 static uint32_t timeout_per_mb(uint32_t size_bytes, uint32_t time_per_mb)
 {
-    uint32_t timeout = ERASE_REGION_TIMEOUT_PER_MB * (size_bytes / 1e6);
+    uint32_t timeout = time_per_mb * (size_bytes / 1e6);
     return MAX(timeout, DEFAULT_FLASH_TIMEOUT);
 }