From 4e7473bc00d26f776e9b51f2a947227867961edc Mon Sep 17 00:00:00 2001 From: HuangRui Date: Mon, 16 Mar 2015 01:05:06 +0800 Subject: [PATCH] Fixed flash automatic detection bug. Support 128MBit flash. --- app/include/user_config.h | 1 + app/platform/flash_api.h | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/include/user_config.h b/app/include/user_config.h index c1a9805c..a91aa179 100644 --- a/app/include/user_config.h +++ b/app/include/user_config.h @@ -10,6 +10,7 @@ // #define FLASH_8M // #define FLASH_16M #define FLASH_AUTOSIZE +#define FLASH_SAFE_API // #define DEVELOP_VERSION #define FULL_VERSION_FOR_USER diff --git a/app/platform/flash_api.h b/app/platform/flash_api.h index 019d2aa9..d7ac41ad 100644 --- a/app/platform/flash_api.h +++ b/app/platform/flash_api.h @@ -57,8 +57,8 @@ do { \ typedef struct { - uint8_t unknown0; - uint8_t unknown1; + uint8_t e9; + uint8_t segments; enum { MODE_QIO = 0,