We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 701b956 commit 12095b2Copy full SHA for 12095b2
esptool/cmds.py
@@ -495,7 +495,7 @@ def write_flash(esp, args):
495
else: # Check against real flash chip size if not in SDM
496
flash_end_str = detect_flash_size(esp)
497
flash_end = flash_size_bytes(flash_end_str)
498
- if set_flash_size and set_flash_size > flash_end:
+ if set_flash_size and flash_end and set_flash_size > flash_end:
499
print(
500
f"WARNING: Set --flash_size {args.flash_size} "
501
f"is larger than the available flash size of {flash_end_str}."
0 commit comments