diff --git a/src/drivers/lps25h/lps25h.cpp b/src/drivers/lps25h/lps25h.cpp index 36893d21fd..2713a3104e 100644 --- a/src/drivers/lps25h/lps25h.cpp +++ b/src/drivers/lps25h/lps25h.cpp @@ -339,6 +339,12 @@ LPS25H::LPS25H(device::Device *interface, const char *path) : _buffer_overflows(perf_alloc(PC_COUNT, "lps25h_buffer_overflows")), _last_report{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_BARO_DEVTYPE_LPS25H; + // enable debug() calls _debug_enabled = false;