1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-19 23:22:16 +03:00

fix start address so erase works

This commit is contained in:
ficeto 2015-05-16 21:40:41 +03:00
parent b902e86cb1
commit b6c196a49a

View File

@ -58,7 +58,7 @@ bool spiffs_format_internal(){
} }
u32_t sect_first, sect_last; u32_t sect_first, sect_last;
sect_first = flashmem_get_first_free_block_address(); sect_first = flashmem_get_sector_of_address((u32_t)&_SPIFFS_start);
sect_last = flashmem_get_sector_of_address((u32_t)&_SPIFFS_end); sect_last = flashmem_get_sector_of_address((u32_t)&_SPIFFS_end);
debugf("sect_first: %x, sect_last: %x\n", sect_first, sect_last); debugf("sect_first: %x, sect_last: %x\n", sect_first, sect_last);
while( sect_first <= sect_last ){ while( sect_first <= sect_last ){