Skip to content

Commit

Permalink
use flash mode and freq
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason2866 committed Aug 3, 2023
1 parent 2a00a29 commit 3a94a15
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 @@ -425,8 +425,8 @@ def __fetch_fs_size(target, source, env):
"--before", board.get("upload.before_reset", "default_reset"),
"--after", board.get("upload.after_reset", "hard_reset"),
"write_flash", "-z",
"--flash_mode", "keep",
"--flash_freq", "keep",
"--flash_mode", "${__get_board_flash_mode(__env__)}",
"--flash_freq", "${__get_board_f_flash(__env__)}",
"--flash_size", board.get("upload.flash_size", "detect")
],
UPLOADCMD='"$PYTHONEXE" "$UPLOADER" $UPLOADERFLAGS $ESP32_APP_OFFSET $SOURCE'
Expand All @@ -443,8 +443,8 @@ def __fetch_fs_size(target, source, env):
"--before", board.get("upload.before_reset", "default_reset"),
"--after", board.get("upload.after_reset", "hard_reset"),
"write_flash", "-z",
"--flash_mode", "keep",
"--flash_freq", "keep",
"--flash_mode", "${__get_board_flash_mode(__env__)}",
"--flash_freq", "${__get_board_f_flash(__env__)}",
"--flash_size", board.get("upload.flash_size", "detect"),
"$FS_START"
],
Expand Down

0 comments on commit 3a94a15

Please sign in to comment.