Skip to content

Commit

Permalink
update:去除防止重复初始化限制
Browse files Browse the repository at this point in the history
  • Loading branch information
doudouladou committed May 9, 2024
1 parent 7ded055 commit 69d5b14
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions components/sfud/sfud_port.c
Expand Up @@ -122,10 +122,7 @@ sfud_err sfud_spi_port_init(sfud_flash *flash) {
/* port SPI device interface */
flash->spi.wr = spi_write_read;
flash->spi.user_data = &(flash->luat_sfud);
if (NULL == flash->luat_sfud.sem)
{
flash->luat_sfud.sem = luat_mutex_create();
}
flash->luat_sfud.sem = luat_mutex_create();
flash->spi.lock = luat_sfud_lock;
flash->spi.unlock = luat_sfud_unlock;
/* 100 microsecond delay */
Expand Down

0 comments on commit 69d5b14

Please sign in to comment.