Commit 5eb7b539 authored by Johny Mattsson's avatar Johny Mattsson
Browse files

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

Dereferencing struct contents considered harmful...
parent e49f2bb1
...@@ -22,12 +22,12 @@ ...@@ -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)
/****************************************************************************** /******************************************************************************
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment