Skip to content

Commit

Permalink
Weak assignment in flash_hal (#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 committed Mar 11, 2023
1 parent 32323e5 commit 503502f
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 503502f

Please sign in to comment.