mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
MPU6K: Add missing bus identifier
This commit is contained in:
parent
40e5d25196
commit
af4e9b668b
@ -530,6 +530,11 @@ MPU6000::MPU6000(device::Device *interface, const char *path_accel, const char *
|
||||
// disable debug() calls
|
||||
_debug_enabled = false;
|
||||
|
||||
// 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();
|
||||
|
||||
switch (_device_type) {
|
||||
|
||||
default:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user