AP_Compass: Add MPU9250 multiple instance support

This commit is contained in:
mirkix 2015-09-18 21:12:04 +02:00 committed by Andrew Tridgell
parent 840f583d23
commit eee9522ca5

View File

@ -454,7 +454,7 @@ void AP_AK8963_SerialBus_MPU9250::_write(uint8_t address, const uint8_t *buf, ui
bool AP_AK8963_SerialBus_MPU9250::configure()
{
if (!AP_InertialSensor_MPU9250::initialize_driver_state())
if (!AP_InertialSensor_MPU9250::initialize_driver_state(_spi))
return false;
uint8_t user_ctrl;