The SDK "flashchip" symbol changed from ptr to struct.

Dereferencing struct contents considered harmful...
This commit is contained in:
Johny Mattsson 2016-05-27 12:21:00 +10:00
parent e49f2bb13f
commit 5eb7b53967
1 changed files with 3 additions and 3 deletions

View File

@ -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)
/****************************************************************************** /******************************************************************************