Skip to content

Commit 25a540d

Browse files
ficetoficeto
ficeto
authored and
ficeto
committed
fix start address so erase works
1 parent 1529d70 commit 25a540d

File tree

1 file changed

+1
-1
lines changed
  • hardware/esp8266com/esp8266/cores/esp8266/spiffs

1 file changed

+1
-1
lines changed

hardware/esp8266com/esp8266/cores/esp8266/spiffs/spiffs.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ bool spiffs_format_internal(){
5858
}
5959

6060
u32_t sect_first, sect_last;
61-
sect_first = flashmem_get_first_free_block_address();
61+
sect_first = flashmem_get_sector_of_address((u32_t)&_SPIFFS_start);
6262
sect_last = flashmem_get_sector_of_address((u32_t)&_SPIFFS_end);
6363
debugf("sect_first: %x, sect_last: %x\n", sect_first, sect_last);
6464
while( sect_first <= sect_last ){

0 commit comments

Comments
 (0)