Skip to content

Commit 88c3687

Browse files
committed
Improve console output
1 parent 89fff7d commit 88c3687

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

libraries/Nano33_System/examples/Nano33_updateBLandSoftDevice/Nano33_updateBLandSoftDevice.ino

+6-7
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,10 @@ void updateBootloader(){
9898

9999
flash.init();
100100

101-
Serial.println("Flasing MBR...");
101+
Serial.println("Flashing MBR...");
102102
applyUpdate(MBR_ADDR, MBR_bin, MBR_bin_len);
103103

104-
Serial.println("Flasing bootloader...");
104+
Serial.println("Flashing bootloader...");
105105
applyUpdate(BOOTLOADER_ADDR, nano33_bootloader_hex, nano33_bootloader_hex_len);
106106

107107
Serial.print("Bootloader 32bit CRC is: ");
@@ -114,19 +114,16 @@ void updateBootloader(){
114114
flash.deinit();
115115

116116
Serial.println();
117-
Serial.println("Bootloader update successfully completed!");
117+
Serial.println("Bootloader update successfully completed!\n");
118118
}
119119

120120
void updateSoftDevice(){
121121
flash.init();
122122

123-
Serial.println("Correct booloader found!");
124-
Serial.println();
125-
126123
Serial.println("Storing SoftDevice length info at 0xFF000...");
127124
writeSoftDeviceLen(SOFTDEVICE_INFO_ADDR);
128125

129-
Serial.println("Flasing SoftDevice...");
126+
Serial.println("Flashing SoftDevice...");
130127
applyUpdate(SOFTDEVICE_ADDR, Softdevice_bin, Softdevice_bin_len - 4096, 4096);
131128

132129
flash.deinit();
@@ -155,6 +152,8 @@ void setup() {
155152
updateSoftDevice();
156153
}
157154
}
155+
156+
Serial.println("Done. You may now disconnect the board.");
158157
}
159158

160159
uint32_t getTargetBootloaderCrc() {

0 commit comments

Comments
 (0)