mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-13 13:11:35 +08:00
I2C/SPI require device type in constructor
This commit is contained in:
@@ -65,9 +65,6 @@ LIS3MDL::LIS3MDL(device::Device *interface, enum Rotation rotation, I2CSPIBusOpt
|
||||
_temperature_counter(0),
|
||||
_temperature_error_count(0)
|
||||
{
|
||||
_interface->set_device_type(DRV_MAG_DEVTYPE_IST8310);
|
||||
|
||||
_px4_mag.set_device_type(DRV_MAG_DEVTYPE_IST8310);
|
||||
_px4_mag.set_external(_interface->external());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user