Skip to content

Commit 1ff1914

Browse files
ficetoficeto
ficeto
authored and
ficeto
committed
alignment not needed. we use fixed addresses
1 parent 7ddb745 commit 1ff1914

File tree

1 file changed

+0
-2
lines changed
  • hardware/esp8266com/esp8266/cores/esp8266/spiffs

1 file changed

+0
-2
lines changed

hardware/esp8266com/esp8266/cores/esp8266/spiffs/spiffs.c

-2
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ spiffs_config spiffs_get_storage_config()
4343
spiffs_config cfg = {0};
4444
if ((u32_t)&_SPIFFS_start == 0) return cfg;
4545
cfg.phys_addr = (u32_t)&_SPIFFS_start;
46-
cfg.phys_addr += 0x3000;
47-
cfg.phys_addr &= 0xFFFFC000; // align to 4 sector.
4846
cfg.phys_size = (u32_t)((u32_t)&_SPIFFS_end - (u32_t)&_SPIFFS_start);
4947
cfg.phys_erase_block = INTERNAL_FLASH_SECTOR_SIZE; // according to datasheet
5048
cfg.log_block_size = INTERNAL_FLASH_SECTOR_SIZE * 2; // Important to make large

0 commit comments

Comments
 (0)