AP_HAL_ChibiOS: do not even initialise empty qspi driver

This commit is contained in:
Siddharth Purohit 2021-06-13 22:48:56 +05:30 committed by Andrew Tridgell
parent 2af3864b61
commit 28dbbc2bc4
1 changed files with 4 additions and 2 deletions

View File

@ -112,8 +112,6 @@ static ChibiOS::CANIface* canDrivers[HAL_NUM_CAN_IFACES];
#if HAL_USE_WSPI == TRUE && defined(HAL_QSPI_DEVICE_LIST)
static ChibiOS::QSPIDeviceManager qspiDeviceManager;
#else
static Empty::QSPIDeviceManager qspiDeviceManager;
#endif
#if HAL_WITH_IO_MCU
@ -135,7 +133,11 @@ HAL_ChibiOS::HAL_ChibiOS() :
&uartIDriver,
&i2cDeviceManager,
&spiDeviceManager,
#if HAL_USE_WSPI == TRUE && defined(HAL_QSPI_DEVICE_LIST)
&qspiDeviceManager,
#else
nullptr,
#endif
&analogIn,
&storageDriver,
&uartADriver,