diff --git a/libraries/AP_HAL_VRBRAIN/I2CDevice.cpp b/libraries/AP_HAL_VRBRAIN/I2CDevice.cpp index 36b4b15abb..d1e09f4f3a 100644 --- a/libraries/AP_HAL_VRBRAIN/I2CDevice.cpp +++ b/libraries/AP_HAL_VRBRAIN/I2CDevice.cpp @@ -68,7 +68,10 @@ bool I2CDevice::read_registers_multiple(uint8_t first_reg, uint8_t *recv, } AP_HAL::OwnPtr -I2CDeviceManager::get_device(uint8_t bus, uint8_t address) +I2CDeviceManager::get_device(uint8_t bus, uint8_t address, + uint32_t bus_clock, + bool use_smbus, + uint32_t timeout_ms) { auto dev = AP_HAL::OwnPtr(new I2CDevice(bus, address)); return dev; diff --git a/libraries/AP_HAL_VRBRAIN/I2CDevice.h b/libraries/AP_HAL_VRBRAIN/I2CDevice.h index c132c3e64e..8be434ba1d 100644 --- a/libraries/AP_HAL_VRBRAIN/I2CDevice.h +++ b/libraries/AP_HAL_VRBRAIN/I2CDevice.h @@ -87,7 +87,10 @@ public: return static_cast(i2c_mgr); } - AP_HAL::OwnPtr get_device(uint8_t bus, uint8_t address) override; + AP_HAL::OwnPtr get_device(uint8_t bus, uint8_t address, + uint32_t bus_clock=400000, + bool use_smbus = false, + uint32_t timeout_ms=4) override; }; }