mirror of
https://github.com/nodemcu/nodemcu-firmware.git
synced 2025-01-16 20:52:57 +08:00
The SDK "flashchip" symbol changed from ptr to struct.
Dereferencing struct contents considered harmful...
This commit is contained in:
parent
e49f2bb13f
commit
5eb7b53967
@ -22,12 +22,12 @@
|
||||
|
||||
#define FLASH_SAFEMODE_ENTER() \
|
||||
do { \
|
||||
extern SpiFlashChip * flashchip; \
|
||||
flashchip->chip_size = FLASH_SIZE_16MBYTE
|
||||
extern SpiFlashChip flashchip; \
|
||||
flashchip.chip_size = FLASH_SIZE_16MBYTE
|
||||
|
||||
|
||||
#define FLASH_SAFEMODE_LEAVE() \
|
||||
flashchip->chip_size = flash_rom_get_size_byte(); \
|
||||
flashchip.chip_size = flash_rom_get_size_byte(); \
|
||||
} while(0)
|
||||
|
||||
/******************************************************************************
|
||||
|
Loading…
x
Reference in New Issue
Block a user