|
|
|
@ -352,6 +352,10 @@ LIS3MDL::LIS3MDL(device::Device *interface, const char *path, enum Rotation rota
@@ -352,6 +352,10 @@ LIS3MDL::LIS3MDL(device::Device *interface, const char *path, enum Rotation rota
|
|
|
|
|
_temperature_error_count(0), |
|
|
|
|
_check_state_cnt(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_LIS3MDL; |
|
|
|
|
|
|
|
|
|
// enable debug() calls
|
|
|
|
|