Skip to content

Commit 87a4ff0

Browse files
committed
Choose the correct board name for teensy_secure
1 parent 9fe2d23 commit 87a4ff0

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
@@ -134,13 +134,19 @@
134134
else:
135135
encrypt_message = "Encrypting $TARGET with default key"
136136

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

0 commit comments

Comments
 (0)