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() \
|
#define FLASH_SAFEMODE_ENTER() \
|
||||||
do { \
|
do { \
|
||||||
extern SpiFlashChip * flashchip; \
|
extern SpiFlashChip flashchip; \
|
||||||
flashchip->chip_size = FLASH_SIZE_16MBYTE
|
flashchip.chip_size = FLASH_SIZE_16MBYTE
|
||||||
|
|
||||||
|
|
||||||
#define FLASH_SAFEMODE_LEAVE() \
|
#define FLASH_SAFEMODE_LEAVE() \
|
||||||
flashchip->chip_size = flash_rom_get_size_byte(); \
|
flashchip.chip_size = flash_rom_get_size_byte(); \
|
||||||
} while(0)
|
} while(0)
|
||||||
|
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
|
|
Loading…
Reference in New Issue