mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-24 09:38:29 -04:00
AP_HAL_Linux: SPIDriver, add MPU6000 support
This commit is contained in:
parent
4d79887cc5
commit
815c2df2d0
@ -124,6 +124,8 @@ AP_HAL::SPIDeviceDriver* LinuxSPIDeviceManager::device(enum AP_HAL::SPIDevice de
|
|||||||
switch (dev) {
|
switch (dev) {
|
||||||
case AP_HAL::SPIDevice_ADS7844:
|
case AP_HAL::SPIDevice_ADS7844:
|
||||||
return &_device_cs0;
|
return &_device_cs0;
|
||||||
|
case AP_HAL::SPIDevice_MPU6000:
|
||||||
|
return &_device_cs1;
|
||||||
}
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user