Skip to content

Commit 503502f

Browse files
authored
Weak assignment in flash_hal (#8884)
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.
1 parent 32323e5 commit 503502f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/esp8266/flash_hal.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ extern const flash_map_s __flashdesc[];
4343

4444
#define FLASH_MAP_SETUP_CONFIG(conf) FLASH_MAP_SETUP_CONFIG_ATTR(,conf)
4545
#define FLASH_MAP_SETUP_CONFIG_ATTR(attr, conf...) \
46-
const flash_map_s __flashdesc[] PROGMEM = conf; \
46+
extern const flash_map_s __flashdesc[] PROGMEM attr = conf; \
4747
const char *flashinit (void) attr; \
4848
const char *flashinit (void) \
4949
{ \

0 commit comments

Comments
 (0)