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