Skip to content

Commit

Permalink
Weak assignment in flash_hal (esp8266#8884)
Browse files Browse the repository at this point in the history
The assignment done in FLASH_MAP_SETUP_CONFIG_ATTR did not apply the attribute to __flashdesc,
and made it impossible to override it with FLASH_MAP_SETUP_CONFIG.
  • Loading branch information
ErikBogg authored and hasenradball committed Nov 18, 2024
1 parent 9de971b commit 01a26d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cores/esp8266/flash_hal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) \
{ \
Expand Down

0 comments on commit 01a26d0

Please sign in to comment.