未验证 提交 93b50db4 编写于 作者: B Bernard Xiong 提交者: GitHub

Merge pull request #3297 from nsearchf/master

修复不能发现禁止写spi flash失败的情形
......@@ -897,7 +897,7 @@ static sfud_err set_write_enabled(const sfud_flash *flash, bool enabled) {
if (enabled && (register_status & SFUD_STATUS_REGISTER_WEL) == 0) {
SFUD_INFO("Error: Can't enable write status.");
return SFUD_ERR_WRITE;
} else if (!enabled && (register_status & SFUD_STATUS_REGISTER_WEL) == 1) {
} else if (!enabled && (register_status & SFUD_STATUS_REGISTER_WEL) != 0) {
SFUD_INFO("Error: Can't disable write status.");
return SFUD_ERR_WRITE;
}
......
......@@ -585,7 +585,7 @@ rt_err_t rt_thread_delay_until(rt_tick_t *tick, rt_tick_t inc_tick)
return RT_EOK;
}
RTM_EXPORT(rt_thread_delay_util);
RTM_EXPORT(rt_thread_delay_until);
/**
* This function will let current thread delay for some milliseconds.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册