hmc5883: setup device type

This commit is contained in:
Andrew Tridgell 2014-07-08 21:09:38 +10:00 committed by Lorenz Meier
parent a2739707bb
commit 30a6a3d0b6
1 changed files with 2 additions and 0 deletions

View File

@ -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;