From 31fc754805324dcbebc4334a28d7f99cc90a8535 Mon Sep 17 00:00:00 2001 From: armink Date: Sat, 24 Nov 2018 16:42:43 +0800 Subject: [PATCH] [DeviceDriver] Fix a build error for SFUD. --- components/drivers/spi/sfud/src/sfud.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/drivers/spi/sfud/src/sfud.c b/components/drivers/spi/sfud/src/sfud.c index e228703336..6cfd1191ef 100644 --- a/components/drivers/spi/sfud/src/sfud.c +++ b/components/drivers/spi/sfud/src/sfud.c @@ -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);