We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa7787f commit cfaf979Copy full SHA for cfaf979
builder/main.py
@@ -131,6 +131,11 @@
131
if build_core == "teensy4":
132
# Get the key and default to an empty string
133
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
+
139
env.Append(
140
BUILDERS=dict(
141
HexToEhex=Builder(
@@ -140,7 +145,7 @@
145
board_config.id.upper(),
146
"$SOURCES",
142
147
custom_secure_key
143
- ]), "Encrypting $TARGET"),
148
+ ]), encrypt_message),
144
149
suffix=".ehex"
150
)
151
0 commit comments