Skip to content

Commit

Permalink
Change encrypt message to include which key is being used
Browse files Browse the repository at this point in the history
  • Loading branch information
ssilverman committed Dec 26, 2022
1 parent 88ccae2 commit c079298
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion builder/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,11 @@
if build_core == "teensy4":
# Get the key and default to an empty string
custom_secure_key = env.GetProjectConfig().get("env:" + env["PIOENV"], "custom_secure_key", "")
if custom_secure_key:
encrypt_message = f"Encrypting $TARGET with key at {custom_secure_key}"
else:
encrypt_message = "Encrypting $TARGET with default key"

env.Append(
BUILDERS=dict(
HexToEhex=Builder(
Expand All @@ -138,7 +143,7 @@
board_config.id.upper(),
"$SOURCES",
custom_secure_key
]), "Encrypting $TARGET"),
]), encrypt_message),
suffix=".ehex"
)
)
Expand Down

0 comments on commit c079298

Please sign in to comment.