Skip to content

Commit

Permalink
Choose the correct board name for teensy_secure
Browse files Browse the repository at this point in the history
  • Loading branch information
ssilverman committed Feb 8, 2024
1 parent cfaf979 commit 6c32917
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion builder/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,13 +136,19 @@
else:
encrypt_message = "Encrypting $TARGET with default key"

# Choose the correct board name for teensy_secure
if board_config.id == "teensymm":
board_name = "TEENSY_MICROMOD"
else:
board_name = board_config.id.upper()

env.Append(
BUILDERS=dict(
HexToEhex=Builder(
action=env.VerboseAction(" ".join([
"$TEENSYSECURE",
"encrypthex",
board_config.id.upper(),
board_name,
"$SOURCES",
custom_secure_key
]), encrypt_message),
Expand Down

0 comments on commit 6c32917

Please sign in to comment.