diff --git a/libraries/AP_HAL_Linux/SPIDriver.cpp b/libraries/AP_HAL_Linux/SPIDriver.cpp index 9c5b3b92fa..11780090ec 100644 --- a/libraries/AP_HAL_Linux/SPIDriver.cpp +++ b/libraries/AP_HAL_Linux/SPIDriver.cpp @@ -124,6 +124,8 @@ AP_HAL::SPIDeviceDriver* LinuxSPIDeviceManager::device(enum AP_HAL::SPIDevice de switch (dev) { case AP_HAL::SPIDevice_ADS7844: return &_device_cs0; + case AP_HAL::SPIDevice_MPU6000: + return &_device_cs1; } return NULL; }