Merge pull request #39 from xtaens/master

sector_magic变量是上个版本的,该版本应该使用sector_header_magic,否则编译报错。
pull/42/head
朱天龙 (Armink) 7 years ago committed by GitHub
commit 45530c4799
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -132,7 +132,7 @@ static SectorStatus get_sector_status(uint32_t addr) {
}
/* compare header magic code */
if(sector_magic == LOG_SECTOR_MAGIC){
if(sector_header_magic == LOG_SECTOR_MAGIC){
if((status_use_magic == SECTOR_STATUS_MAGIC_EMPUT) && (status_full_magic == SECTOR_STATUS_MAGIC_EMPUT)) {
return SECTOR_STATUS_EMPUT;
} else if((status_use_magic == SECTOR_STATUS_MAGIC_USING) && (status_full_magic == SECTOR_STATUS_MAGIC_EMPUT)) {

Loading…
Cancel
Save