Skip to content

Commit cfaf979

Browse files
committed
Change encrypt message to include which key is being used
1 parent fa7787f commit cfaf979

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

builder/main.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,11 @@
131131
if build_core == "teensy4":
132132
# Get the key and default to an empty string
133133
custom_secure_key = env.GetProjectConfig().get("env:" + env["PIOENV"], "custom_secure_key", "")
134+
if custom_secure_key:
135+
encrypt_message = f"Encrypting $TARGET with key at {custom_secure_key}"
136+
else:
137+
encrypt_message = "Encrypting $TARGET with default key"
138+
134139
env.Append(
135140
BUILDERS=dict(
136141
HexToEhex=Builder(
@@ -140,7 +145,7 @@
140145
board_config.id.upper(),
141146
"$SOURCES",
142147
custom_secure_key
143-
]), "Encrypting $TARGET"),
148+
]), encrypt_message),
144149
suffix=".ehex"
145150
)
146151
)

0 commit comments

Comments
 (0)