We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4681b2 commit d0b21adCopy full SHA for d0b21ad
loader/fixups.c
@@ -157,9 +157,10 @@ int maybe_flash_bootloader(void) {
157
uint8_t flash_bootloader[256];
158
flash_area_read(fa, 0, flash_bootloader, 256);
159
160
- if (memcmp(embedded_bootloader, flash_bootloader, 256) != 0) {
+ if (memcmp(embedded_bootloader, flash_bootloader, 256) != 0)
161
+ {
162
// flash the bootloader
- rc = flash_area_erase(fa, 0, fa->fa_size);
163
+rc = flash_area_erase(fa, 0, fa->fa_size);
164
if (rc) {
165
printk("Failed to erase flash area, rc %d\n", rc);
166
return rc;
0 commit comments