mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 07:44:03 -04:00
AP_HAL_Empty: fix sitl
Sitl or anyone using AP_HAL_Empty implementation doesn't have any I2CDevice, so it's pointless to return an empty one.
This commit is contained in:
parent
849a83315a
commit
5ef1568137
@ -82,7 +82,7 @@ public:
|
||||
/* AP_HAL::I2CDeviceManager implementation */
|
||||
AP_HAL::OwnPtr<AP_HAL::I2CDevice> get_device(uint8_t bus, uint8_t address)
|
||||
{
|
||||
return AP_HAL::OwnPtr<AP_HAL::I2CDevice>(new I2CDevice());
|
||||
return nullptr;
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user