mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-06 07:31:36 +08:00
HMC: Add missing bus identifier
This commit is contained in:
@@ -370,6 +370,10 @@ HMC5883::HMC5883(device::Device *interface, const char *path, enum Rotation rota
|
|||||||
_temperature_counter(0),
|
_temperature_counter(0),
|
||||||
_temperature_error_count(0)
|
_temperature_error_count(0)
|
||||||
{
|
{
|
||||||
|
// set the device type from the interface
|
||||||
|
_device_id.devid_s.bus_type = _interface->get_device_bus_type();
|
||||||
|
_device_id.devid_s.bus = _interface->get_device_bus();
|
||||||
|
_device_id.devid_s.address = _interface->get_device_address();
|
||||||
_device_id.devid_s.devtype = DRV_MAG_DEVTYPE_HMC5883;
|
_device_id.devid_s.devtype = DRV_MAG_DEVTYPE_HMC5883;
|
||||||
|
|
||||||
// enable debug() calls
|
// enable debug() calls
|
||||||
|
|||||||
Reference in New Issue
Block a user