From 815c2df2d05b734064235be53ce76120afe1d7b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Mayoral=20Vilches?= Date: Sun, 27 Apr 2014 13:31:41 +0200 Subject: [PATCH] AP_HAL_Linux: SPIDriver, add MPU6000 support --- libraries/AP_HAL_Linux/SPIDriver.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; }