LPS25H: Add missing bus identifier

This commit is contained in:
Lorenz Meier 2017-01-28 19:58:48 +01:00
parent 19d4c65a70
commit 40e5d25196

View File

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