mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-18 14:53:32 +08:00
[DeviceDriver] Fix a build error for SFUD.
This commit is contained in:
parent
3a3da42738
commit
31fc754805
@ -256,8 +256,10 @@ static sfud_err hardware_init(sfud_flash *flash) {
|
||||
return result;
|
||||
}
|
||||
|
||||
#ifdef SFUD_USING_QSPI
|
||||
/* set default read instruction */
|
||||
flash->read_cmd_format.instruction = SFUD_CMD_READ_DATA;
|
||||
#endif /* SFUD_USING_QSPI */
|
||||
|
||||
/* SPI write read function must be initialize */
|
||||
SFUD_ASSERT(flash->spi.wr);
|
||||
|
Loading…
x
Reference in New Issue
Block a user