Skip to content

Commit

Permalink
md5sum: Increase md5sum timeout to 8 seconds/megabyte
Browse files Browse the repository at this point in the history
This is probably extreme, I think it's only the case if the last block of a compressed written image
is a large number of zeroes, meaning the md5sum has to wait until the last write finishes.
  • Loading branch information
projectgus committed Nov 28, 2017
1 parent b813b37 commit 9d197ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion esptool.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
CHIP_ERASE_TIMEOUT = 120 # timeout for full chip erase
MAX_TIMEOUT = CHIP_ERASE_TIMEOUT * 2 # longest any command can run
SYNC_TIMEOUT = 0.1 # timeout for syncing with bootloader
MD5_TIMEOUT_PER_MB = 5 # timeout (per megabyte) for calculating md5sum
MD5_TIMEOUT_PER_MB = 8 # timeout (per megabyte) for calculating md5sum
ERASE_REGION_TIMEOUT_PER_MB = 30 # timeout (per megabyte) for erasing a region


Expand Down

0 comments on commit 9d197ef

Please sign in to comment.