Browse Source

Fixed flash automatic detection bug. Support 128MBit flash.

HuangRui 9 years ago
parent
commit
4e7473bc00
2 changed files with 3 additions and 2 deletions
  1. 1 0
      app/include/user_config.h
  2. 2 2
      app/platform/flash_api.h

+ 1 - 0
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
 

+ 2 - 2
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,