Skip to content

Commit a7f758c

Browse files
committed
Reuse variable for BL version
1 parent f7c8f58 commit a7f758c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/Portenta_System/examples/PortentaH7_updateBootloader/PortentaH7_updateBootloader.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ void setup() {
1515
uint8_t availableBootloaderVersion = (envie_bootloader_mbed_bin + bootloader_data_offset)[1];
1616

1717
Serial.println("Magic Number (validation): " + String(bootloader_data[0], HEX));
18-
Serial.println("Bootloader version: " + String(bootloader_data[1]));
18+
Serial.println("Bootloader version: " + String(currentBootloaderVersion));
1919
Serial.println("Clock source: " + getClockSource(bootloader_data[2]));
2020
Serial.println("USB Speed: " + getUSBSpeed(bootloader_data[3]));
2121
Serial.println("Has Ethernet: " + String(bootloader_data[4] == 1 ? "Yes" : "No"));

0 commit comments

Comments
 (0)