Browse Source

hmc5883: setup device type

sbg
Andrew Tridgell 11 years ago committed by Lorenz Meier
parent
commit
30a6a3d0b6
  1. 2
      src/drivers/hmc5883/hmc5883.cpp

2
src/drivers/hmc5883/hmc5883.cpp

@ -341,6 +341,8 @@ HMC5883::HMC5883(int bus, const char *path, enum Rotation rotation) : @@ -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;

Loading…
Cancel
Save