mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-12 01:23:56 -03:00
SITL: correct compilation when AP_SIM_IS31FL3195_ENABLED off
object won't exist in that case
This commit is contained in:
parent
e30cc65f14
commit
5791aea3fc
@ -117,8 +117,10 @@ void I2C::init()
|
||||
i.device.init();
|
||||
}
|
||||
|
||||
#if AP_SIM_IS31FL3195_ENABLED
|
||||
// IS31FL3195 needs to know its own address:
|
||||
is31fl3195.set_product_id(SIM_IS31FL3195_ADDR);
|
||||
#endif
|
||||
|
||||
// sanity check the i2c_devices structure to ensure we don't have
|
||||
// two devices at the same address on the same bus:
|
||||
|
Loading…
Reference in New Issue
Block a user