Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
valeros authored Feb 20, 2024
1 parent 628b333 commit b82248d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions builder/bootloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,10 @@ def get_bootloader_dxcore(framework_dir, board_config):
UPLOADBOOTCMD="$BOOTUPLOADER $BOOTUPLOADERFLAGS $UPLOAD_FLAGS $BOOTFLAGS",
)

# Add upload serial port to Avrdude flags list if a jtag2updi or serialupdi programmer
if env.subst("$UPLOAD_PROTOCOL") in ("jtag2updi", "serialupdi"):
if env.subst("$UPLOAD_PROTOCOL") in (
"jtag2updi",
"serialupdi",
) or env.BoardConfig().get("upload", {}).get("require_upload_port", False):
env.AutodetectUploadPort()
env.Append(BOOTUPLOADERFLAGS=["-P", '"$UPLOAD_PORT"'])
else:
Expand Down

0 comments on commit b82248d

Please sign in to comment.