未验证 提交 45530c47 编写于 作者: 朱天龙 (Armink) 提交者: GitHub

Merge pull request #39 from xtaens/master

sector_magic变量是上个版本的,该版本应该使用sector_header_magic,否则编译报错。
......@@ -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)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册