diff --git a/os/hal/lib/complex/serial_nor/hal_serial_nor.h b/os/hal/lib/complex/serial_nor/hal_serial_nor.h index fb0dc19a4..56b3c0fc3 100644 --- a/os/hal/lib/complex/serial_nor/hal_serial_nor.h +++ b/os/hal/lib/complex/serial_nor/hal_serial_nor.h @@ -137,10 +137,12 @@ typedef struct snor_nocache_buffer { * @brief Temporary generic buffer. */ uint8_t buf[SNOR_BUFFER_SIZE]; +#if SNOR_BUS_DRIVER == SNOR_BUS_DRIVER_WSPI /** * @brief Temporary command buffer. */ wspi_command_t cmd; +#endif } snor_nocache_buffer_t; /**