Skip to content

Commit 6c32917

Browse files
committed
Choose the correct board name for teensy_secure
1 parent cfaf979 commit 6c32917

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

builder/main.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,13 +136,19 @@
136136
else:
137137
encrypt_message = "Encrypting $TARGET with default key"
138138

139+
# Choose the correct board name for teensy_secure
140+
if board_config.id == "teensymm":
141+
board_name = "TEENSY_MICROMOD"
142+
else:
143+
board_name = board_config.id.upper()
144+
139145
env.Append(
140146
BUILDERS=dict(
141147
HexToEhex=Builder(
142148
action=env.VerboseAction(" ".join([
143149
"$TEENSYSECURE",
144150
"encrypthex",
145-
board_config.id.upper(),
151+
board_name,
146152
"$SOURCES",
147153
custom_secure_key
148154
]), encrypt_message),

0 commit comments

Comments
 (0)