Browse Source

xfdump: correctly erase all sectors in xfdump_erase

Yuri D'Elia 3 years ago
parent
commit
8d11ad9d2d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Firmware/xflash_dump.cpp

+ 1 - 1
Firmware/xflash_dump.cpp

@@ -44,7 +44,7 @@ static void xfdump_erase()
         addr += 4096)
     {
         xflash_enable_wr();
-        xflash_sector_erase(DUMP_OFFSET);
+        xflash_sector_erase(addr);
         xflash_wait_busy();
     }
 }