From c0792987682397c8aaede3b34e42203d1d704343 Mon Sep 17 00:00:00 2001 From: Shawn Silverman Date: Mon, 26 Dec 2022 15:30:23 -0800 Subject: [PATCH] Change encrypt message to include which key is being used --- builder/main.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/builder/main.py b/builder/main.py index b2462f1..560b9fa 100644 --- a/builder/main.py +++ b/builder/main.py @@ -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( @@ -138,7 +143,7 @@ board_config.id.upper(), "$SOURCES", custom_secure_key - ]), "Encrypting $TARGET"), + ]), encrypt_message), suffix=".ehex" ) )