Skip to content

Commit 3096f09

Browse files
committed
Fix wrong print about bootloader update
1 parent 15dfcad commit 3096f09

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

libraries/MCUboot/examples/enableSecurity/enableSecurity.ino

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ void setup() {
3838
String currentBootloaderIdentifier = String(bootloader_identification, 15);
3939

4040
if((currentBootloaderVersion > 24) && (currentBootloaderIdentifier.equals("MCUboot Arduino"))) {
41-
Serial.println("\nThe sketch comes with a set of default keys to evaluate signing and encryption process");
41+
Serial.println("The sketch comes with a set of default keys to evaluate signing and encryption process");
4242
Serial.println("If you load the keys, you will need to upload the future sketches with Security Settings -> Signing + Encryption.");
4343
Serial.println("If you select Security Settings -> None, the sketches will not be executed.");
4444
Serial.println("Do you want to load the keys? Y/[n]");
@@ -145,9 +145,8 @@ void applyUpdate() {
145145
setupMCUBootOTAData();
146146
flash.program(&enc_priv_key, ENCRYPT_KEY_ADDR, ENCRYPT_KEY_SIZE);
147147
flash.program(&ecdsa_pub_key, SIGNING_KEY_ADDR, SIGNING_KEY_SIZE);
148-
Serial.println("Flashed 100%");
149148
flash.deinit();
150-
Serial.println("\nBootloader update complete. It's now safe to reboot or disconnect your board.");
149+
Serial.println("\nSecurity features enabled. It's now safe to reboot or disconnect your board.");
151150
}
152151

153152
void loop() {

0 commit comments

Comments
 (0)