Przeglądaj źródła

xfdump: correctly erase all sectors in xfdump_erase

Yuri D'Elia 2 lat temu
rodzic
commit
8d11ad9d2d
1 zmienionych plików z 1 dodań i 1 usunięć
  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();
     }
 }