File tree 1 file changed +5
-2
lines changed
libraries/Portenta_System/examples/PortentaH7_updateBootloader
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -29,8 +29,11 @@ void setup() {
29
29
Serial.print (" \n A new bootloader version is available: v" + String (availableBootloaderVersion));
30
30
Serial.println (" (Your version: v" + String (currentBootloaderVersion) + " )" );
31
31
Serial.println (" Do you want to update the bootloader? Y/[n]" );
32
+ } else if (availableBootloaderVersion < currentBootloaderVersion){
33
+ Serial.println (" \n A newer bootloader version is already installed: v" + String (currentBootloaderVersion));
34
+ Serial.println (" Do you want to downgrade the bootloader to v" + String (availableBootloaderVersion) + " ? Y/[n]" );
32
35
} else {
33
- Serial.println (" The latest version of the bootloader is already installed (v" + String (availableBootloaderVersion ) + " )." );
36
+ Serial.println (" \n The latest version of the bootloader is already installed (v" + String (currentBootloaderVersion ) + " )." );
34
37
Serial.println (" Do you want to update the bootloader anyway? Y/[n]" );
35
38
}
36
39
@@ -131,4 +134,4 @@ void applyUpdate(uint32_t address) {
131
134
132
135
void loop () {
133
136
delay (1000 );
134
- }
137
+ }
You can’t perform that action at this time.
0 commit comments