From 5181f907254e88622ab324ec26119b4db25de2ef Mon Sep 17 00:00:00 2001 From: ficeto Date: Thu, 14 May 2015 12:14:39 +0300 Subject: [PATCH] alignment not needed. we use fixed addresses --- cores/esp8266/spiffs/spiffs.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/cores/esp8266/spiffs/spiffs.c b/cores/esp8266/spiffs/spiffs.c index 4cb5b4f1b..c07be839a 100755 --- a/cores/esp8266/spiffs/spiffs.c +++ b/cores/esp8266/spiffs/spiffs.c @@ -43,8 +43,6 @@ spiffs_config spiffs_get_storage_config() spiffs_config cfg = {0}; if ((u32_t)&_SPIFFS_start == 0) return cfg; cfg.phys_addr = (u32_t)&_SPIFFS_start; - cfg.phys_addr += 0x3000; - cfg.phys_addr &= 0xFFFFC000; // align to 4 sector. cfg.phys_size = (u32_t)((u32_t)&_SPIFFS_end - (u32_t)&_SPIFFS_start); cfg.phys_erase_block = INTERNAL_FLASH_SECTOR_SIZE; // according to datasheet cfg.log_block_size = INTERNAL_FLASH_SECTOR_SIZE * 2; // Important to make large