AP_HAL_Linux: SPIDriver, add MPU6000 support

This commit is contained in:
Víctor Mayoral Vilches 2014-04-27 13:31:41 +02:00 committed by Andrew Tridgell
parent 4d79887cc5
commit 815c2df2d0

View File

@ -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;
}