From 25a540d9ddb23f94e51ccc874d70c5688bb0ac91 Mon Sep 17 00:00:00 2001 From: ficeto Date: Sat, 16 May 2015 21:40:41 +0300 Subject: [PATCH] fix start address so erase works --- hardware/esp8266com/esp8266/cores/esp8266/spiffs/spiffs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hardware/esp8266com/esp8266/cores/esp8266/spiffs/spiffs.c b/hardware/esp8266com/esp8266/cores/esp8266/spiffs/spiffs.c index c07be839a..71d00905c 100755 --- a/hardware/esp8266com/esp8266/cores/esp8266/spiffs/spiffs.c +++ b/hardware/esp8266com/esp8266/cores/esp8266/spiffs/spiffs.c @@ -58,7 +58,7 @@ bool spiffs_format_internal(){ } 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); debugf("sect_first: %x, sect_last: %x\n", sect_first, sect_last); while( sect_first <= sect_last ){