raburton / esp8266

Various bits of code for ESP8266
http://richard.burtons.org/
183 stars 47 forks source link

compilation error with timezone.c. using esp_open_sdk on linux environment. #35

Closed SivaNallamalli closed 7 years ago

SivaNallamalli commented 7 years ago

ntp/timezone.c:10:31: error: expected '=', ',', ';', 'asm' or 'attribute' before 'applyTZ' static void ICACHE_FLASH_ATTR applyTZ(struct tm *time) { ^ Makefile:149: recipe for target 'build/ntp/timezone.o' failed

raburton commented 7 years ago

Your sdk doesn't appear to use ICACHE_FLASH_ATTR to put functions in rom (rather than ram). Removing ICACHE_FLASH_ATTR will get rid of the error, but whether the function ends up in ram or rom (or how you would force it to one or the other) I can't say with your setup.