We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b902e86 commit b6c196aCopy full SHA for b6c196a
cores/esp8266/spiffs/spiffs.c
@@ -58,7 +58,7 @@ bool spiffs_format_internal(){
58
}
59
60
u32_t sect_first, sect_last;
61
- sect_first = flashmem_get_first_free_block_address();
+ sect_first = flashmem_get_sector_of_address((u32_t)&_SPIFFS_start);
62
sect_last = flashmem_get_sector_of_address((u32_t)&_SPIFFS_end);
63
debugf("sect_first: %x, sect_last: %x\n", sect_first, sect_last);
64
while( sect_first <= sect_last ){
0 commit comments