1、【修复】Flash log在特殊条件下会无法写入的Bug;

Signed-off-by: armink <armink.ztl@gmail.com>
pull/7/head
armink 10 years ago
parent 2d7b3ed3a5
commit 332632864e

@ -67,7 +67,7 @@ if (!(EXPR)) \
while (1); \
}
/* EasyFlash software version number */
#define EF_SW_VERSION "1.08.27"
#define EF_SW_VERSION "1.09.12"
typedef struct _eflash_env{
char *key;

@ -142,11 +142,16 @@ uint32_t ef_find_sec_using_end_addr(uint32_t addr, size_t sec_size) {
}
/* all sector counts finish */
if (continue_ff == sec_size - start) {
/* must be word alignment */
if (start % 4 != 0) {
start = (start / 4 + 1) * 4;
}
break;
}
}
}
}
/* calculate current flash sector using end address */
if ((start == 0) && (continue_ff == sec_size)) {
/* from 0 to sec_size all sector is 0xFF, so the sector is empty */
return addr;

Loading…
Cancel
Save