Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
5eb7b539
Commit
5eb7b539
authored
May 27, 2016
by
Johny Mattsson
Browse files
The SDK "flashchip" symbol changed from ptr to struct.
Dereferencing struct contents considered harmful...
parent
e49f2bb1
Changes
1
Show whitespace changes
Inline
Side-by-side
app/platform/flash_api.h
View file @
5eb7b539
...
@@ -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)
/******************************************************************************
/******************************************************************************
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment