Skip to content

Commit 93b50db

Browse files
authored
Merge pull request #3297 from nsearchf/master
修复不能发现禁止写spi flash失败的情形
2 parents 4bee990 + b135b70 commit 93b50db

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

components/drivers/spi/sfud/src/sfud.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -897,7 +897,7 @@ static sfud_err set_write_enabled(const sfud_flash *flash, bool enabled) {
897897
if (enabled && (register_status & SFUD_STATUS_REGISTER_WEL) == 0) {
898898
SFUD_INFO("Error: Can't enable write status.");
899899
return SFUD_ERR_WRITE;
900-
} else if (!enabled && (register_status & SFUD_STATUS_REGISTER_WEL) == 1) {
900+
} else if (!enabled && (register_status & SFUD_STATUS_REGISTER_WEL) != 0) {
901901
SFUD_INFO("Error: Can't disable write status.");
902902
return SFUD_ERR_WRITE;
903903
}

src/thread.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ rt_err_t rt_thread_delay_until(rt_tick_t *tick, rt_tick_t inc_tick)
585585

586586
return RT_EOK;
587587
}
588-
RTM_EXPORT(rt_thread_delay_util);
588+
RTM_EXPORT(rt_thread_delay_until);
589589

590590
/**
591591
* This function will let current thread delay for some milliseconds.

0 commit comments

Comments
 (0)