Skip to content

Commit b6c196a

Browse files
ficetoficeto
ficeto
authored and
ficeto
committed
fix start address so erase works
1 parent b902e86 commit b6c196a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)