Skip to content

Commit

Permalink
arrgh...
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason2866 authored Feb 14, 2024
1 parent add0967 commit 916608e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions builder/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def __fetch_fs_size(target, source, env):
env.Replace(
__get_board_boot_mode=_get_board_boot_mode,
__get_board_f_flash=_get_board_f_flash,
__get_board_img_freq=_get_board_img_freq,
__get_board_f_image=_get_board_f_image,
__get_board_flash_mode=_get_board_flash_mode,
__get_board_memory_type=_get_board_memory_type,

Expand Down Expand Up @@ -309,7 +309,7 @@ def __fetch_fs_size(target, source, env):
'"$PYTHONEXE" "$OBJCOPY"',
"--chip", mcu, "elf2image",
"--flash_mode", "${__get_board_flash_mode(__env__)}",
"--flash_freq", "${__get_board_img_freq(__env__)}",
"--flash_freq", "${__get_board_f_image(__env__)}",
"--flash_size", board.get("upload.flash_size", "4MB"),
"-o", "$TARGET", "$SOURCES"
]), "Building $TARGET"),
Expand Down Expand Up @@ -445,7 +445,7 @@ def __fetch_fs_size(target, source, env):
"--after", board.get("upload.after_reset", "hard_reset"),
"write_flash", "-z",
"--flash_mode", "${__get_board_flash_mode(__env__)}",
"--flash_freq", "${__get_board_img_freq(__env__)}",
"--flash_freq", "${__get_board_f_image(__env__)}",
"--flash_size", board.get("upload.flash_size", "detect")
],
UPLOADCMD='"$PYTHONEXE" "$UPLOADER" $UPLOADERFLAGS $ESP32_APP_OFFSET $SOURCE'
Expand All @@ -463,7 +463,7 @@ def __fetch_fs_size(target, source, env):
"--after", board.get("upload.after_reset", "hard_reset"),
"write_flash", "-z",
"--flash_mode", "${__get_board_flash_mode(__env__)}",
"--flash_freq", "${__get_board_img_freq(__env__)}",
"--flash_freq", "${__get_board_f_image(__env__)}",
"--flash_size", board.get("upload.flash_size", "detect"),
"$FS_START"
],
Expand Down

0 comments on commit 916608e

Please sign in to comment.