From 5eb7b53967a9fb07fd5b8d4aed66fea22f8e603e Mon Sep 17 00:00:00 2001 From: Johny Mattsson Date: Fri, 27 May 2016 12:21:00 +1000 Subject: [PATCH] The SDK "flashchip" symbol changed from ptr to struct. Dereferencing struct contents considered harmful... --- app/platform/flash_api.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/platform/flash_api.h b/app/platform/flash_api.h index 0ce1d163..b8e84ea0 100644 --- a/app/platform/flash_api.h +++ b/app/platform/flash_api.h @@ -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) /******************************************************************************