Skip to content

Commit

Permalink
first working version
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason2866 committed Nov 2, 2023
1 parent a33be94 commit 5a7470d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion esp_flasher/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def run_esp_flasher(argv):
print(f" - Flash Size: {flash_size}")

mock_args = configure_write_flash_args(
info, factory_firm, firmware, flash_size, args.bootloader, args.partitions, args.otadata
info, firmware, flash_size, args.bootloader, args.partitions, args.otadata
)

print(f" - Flash Mode: {mock_args.flash_mode}")
Expand Down
5 changes: 2 additions & 3 deletions esp_flasher/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def format_partitions_path(path, model):


def configure_write_flash_args(
info, factory_firm_path, firmware_path, flash_size, bootloader_path, partitions_path, otadata_path
info, firmware_path, flash_size, bootloader_path, partitions_path, otadata_path
):
addr_filename = []
firmware = open_downloadable_binary(firmware_path)
Expand Down Expand Up @@ -229,9 +229,8 @@ def configure_write_flash_args(

if not partitions_path:
partitions_path = format_partitions_path(ESP32_DEFAULT_PARTITIONS, model)
if not factory_firm_path:
factory_firm_path = format_partitions_path(ESP32_DEFAULT_SAFEBOOT, model)

factory_firm_path = format_partitions_path(ESP32_DEFAULT_SAFEBOOT, model)
partitions = open_downloadable_binary(partitions_path)
factory_firm = open_downloadable_binary(factory_firm_path)
otadata = open_downloadable_binary(otadata_path)
Expand Down

0 comments on commit 5a7470d

Please sign in to comment.