mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
LPS25H: Add missing bus identifier
This commit is contained in:
parent
19d4c65a70
commit
40e5d25196
@ -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;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user