AP_HAL_Linux: cope with HAL_WITH_DSP being false

This commit is contained in:
Peter Barker 2024-01-02 12:49:00 +11:00 committed by Peter Barker
parent 75ebef32cf
commit 7e51811a24
1 changed files with 4 additions and 0 deletions

View File

@ -251,7 +251,9 @@ static OpticalFlow_Onboard opticalFlow;
static Empty::OpticalFlow opticalFlow;
#endif
#if HAL_WITH_DSP
static Empty::DSP dspDriver;
#endif
static Empty::Flash flashDriver;
static Empty::WSPIDeviceManager wspi_mgr_instance;
@ -284,7 +286,9 @@ HAL_Linux::HAL_Linux() :
&utilInstance,
&opticalFlow,
&flashDriver,
#if HAL_WITH_DSP
&dspDriver,
#endif
#if HAL_NUM_CAN_IFACES
(AP_HAL::CANIface**)canDrivers
#else