Skip to content

Commit

Permalink
Update __main__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason2866 authored Nov 16, 2023
1 parent e0b7024 commit 6aaea55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions esp_flasher/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def run_esp_flasher(argv):

print(f" - Flash Size: {flash_size}")

flag_factory = ""
flag_factory = False
min_rev = 0
min_rev_full = 0
max_rev_full = 65535
Expand All @@ -186,7 +186,7 @@ def run_esp_flasher(argv):
args.input, secure_pad, secure_pad_v2, min_rev, min_rev_full, max_rev_full, elf_sha256_offset,
use_segments, flash_mmu_page_size, pad_to_size, spi_connection, output
)
if not "ESP8266" in info.family and "false" in flag_factory:
if not "ESP8266" in info.family and not flag_factory:
try:
esptool.elf2image(mock_args)
except esptool.FatalError as err:
Expand Down

0 comments on commit 6aaea55

Please sign in to comment.