Skip to content

Commit bb8065e

Browse files
committed
Change encrypt message to include which key is being used
1 parent 9cd1c48 commit bb8065e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

builder/main.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,11 @@
129129
if build_core == "teensy4":
130130
# Get the key and default to an empty string
131131
custom_secure_key = env.GetProjectConfig().get("env:" + env["PIOENV"], "custom_secure_key", "")
132+
if custom_secure_key:
133+
encrypt_message = f"Encrypting $TARGET with key at {custom_secure_key}"
134+
else:
135+
encrypt_message = "Encrypting $TARGET with default key"
136+
132137
env.Append(
133138
BUILDERS=dict(
134139
HexToEhex=Builder(
@@ -138,7 +143,7 @@
138143
board_config.id.upper(),
139144
"$SOURCES",
140145
custom_secure_key
141-
]), "Encrypting $TARGET"),
146+
]), encrypt_message),
142147
suffix=".ehex"
143148
)
144149
)

0 commit comments

Comments
 (0)