mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-26 21:53:34 +08:00
LPS25H: Add missing bus identifier
This commit is contained in:
@@ -339,6 +339,12 @@ LPS25H::LPS25H(device::Device *interface, const char *path) :
|
|||||||
_buffer_overflows(perf_alloc(PC_COUNT, "lps25h_buffer_overflows")),
|
_buffer_overflows(perf_alloc(PC_COUNT, "lps25h_buffer_overflows")),
|
||||||
_last_report{0}
|
_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
|
// enable debug() calls
|
||||||
_debug_enabled = false;
|
_debug_enabled = false;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user