diff --git a/cores/esp8266/flash_hal.h b/cores/esp8266/flash_hal.h index 682e1dcfb..061b1d0b0 100644 --- a/cores/esp8266/flash_hal.h +++ b/cores/esp8266/flash_hal.h @@ -43,7 +43,7 @@ extern const flash_map_s __flashdesc[]; #define FLASH_MAP_SETUP_CONFIG(conf) FLASH_MAP_SETUP_CONFIG_ATTR(,conf) #define FLASH_MAP_SETUP_CONFIG_ATTR(attr, conf...) \ - const flash_map_s __flashdesc[] PROGMEM = conf; \ + extern const flash_map_s __flashdesc[] PROGMEM attr = conf; \ const char *flashinit (void) attr; \ const char *flashinit (void) \ { \