mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-14 05:30:35 +08:00
hmc5883: setup device type
This commit is contained in:
committed by
Lorenz Meier
parent
a2739707bb
commit
30a6a3d0b6
@@ -341,6 +341,8 @@ HMC5883::HMC5883(int bus, const char *path, enum Rotation rotation) :
|
||||
_bus(bus),
|
||||
_rotation(rotation)
|
||||
{
|
||||
_device_id.devid_s.devtype = DRV_MAG_DEVTYPE_HMC5883;
|
||||
|
||||
// enable debug() calls
|
||||
_debug_enabled = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user