[DO NOT MERGE] px4_i2c_device_external hacks

This commit is contained in:
Daniel Agar
2022-09-20 10:31:26 +12:00
committed by Julian Oes
parent b922307ddb
commit a47895e809
7 changed files with 60 additions and 4 deletions
+1 -1
View File
@@ -250,7 +250,7 @@ bool DeviceExternal(uint32_t device_id)
switch (bus_type) {
case device::Device::DeviceBusType_I2C:
#if defined(CONFIG_I2C)
external = px4_i2c_bus_external(id.devid_s.bus);
external = px4_i2c_device_external(device_id);
#endif // CONFIG_I2C
break;