diff --git a/libraries/AP_HAL_ChibiOS/HAL_ChibiOS_Class.cpp b/libraries/AP_HAL_ChibiOS/HAL_ChibiOS_Class.cpp index 65ebdfafda..2355fe4be5 100644 --- a/libraries/AP_HAL_ChibiOS/HAL_ChibiOS_Class.cpp +++ b/libraries/AP_HAL_ChibiOS/HAL_ChibiOS_Class.cpp @@ -110,8 +110,6 @@ static AP_HAL::SIMState xsimstate; #if HAL_WITH_DSP static ChibiOS::DSP dspDriver; -#else -static Empty::DSP dspDriver; #endif #ifndef HAL_NO_FLASH_SUPPORT @@ -166,7 +164,9 @@ HAL_ChibiOS::HAL_ChibiOS() : #if AP_SIM_ENABLED &xsimstate, #endif +#if HAL_WITH_DSP &dspDriver, +#endif #if HAL_NUM_CAN_IFACES (AP_HAL::CANIface**)canDrivers #else