Added missing ICACHE_FLASH_ATTR to espFsInit

pull/30/head
Jindra Dolezy 10 years ago
parent d8afde3cc1
commit 13021e800e
  1. 2
      espfs/espfs.c

@ -73,7 +73,7 @@ Accessing the flash through the mem emulation at 0x40200000 is a bit hairy: All
a memory exception, crashing the program. a memory exception, crashing the program.
*/ */
EspFsInitResult espFsInit(void *flashAddress) { EspFsInitResult ICACHE_FLASH_ATTR espFsInit(void *flashAddress) {
// base address must be aligned to 4 bytes // base address must be aligned to 4 bytes
if (((int)flashAddress & 3) != 0) { if (((int)flashAddress & 3) != 0) {
return ESPFS_INIT_RESULT_BAD_ALIGN; return ESPFS_INIT_RESULT_BAD_ALIGN;

Loading…
Cancel
Save