AP_HAL_Empty: add get_device_ptr to HAL I2CDevice API

This commit is contained in:
Peter Barker 2025-01-29 11:52:24 +11:00 committed by Peter Barker
parent 97e87dfcdb
commit 45db7d2231

View File

@ -83,10 +83,10 @@ public:
I2CDeviceManager() { }
/* AP_HAL::I2CDeviceManager implementation */
AP_HAL::OwnPtr<AP_HAL::I2CDevice> get_device(uint8_t bus, uint8_t address,
uint32_t bus_clock=400000,
bool use_smbus = false,
uint32_t timeout_ms=4) override
AP_HAL::I2CDevice *get_device_ptr(uint8_t bus, uint8_t address,
uint32_t bus_clock=400000,
bool use_smbus = false,
uint32_t timeout_ms=4) override
{
return nullptr;
}