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