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:
Lucas De Marchi 2016-07-13 19:49:22 -03:00
parent 849a83315a
commit 5ef1568137

View File

@ -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;
}
};