forked from Archive/PX4-Autopilot
i2c_spi_buses: print an error if a driver does not pass the I2C address
This commit is contained in:
parent
82c7908a2d
commit
a556a44a57
|
@ -476,6 +476,10 @@ int I2CSPIDriverBase::module_start(const BusCLIArguments &cli, BusInstanceIterat
|
|||
continue;
|
||||
}
|
||||
|
||||
if (cli.i2c_address != 0 && instance->_i2c_address == 0) {
|
||||
PX4_ERR("Bug: driver %s does not pass the I2C address to I2CSPIDriverBase", instance->ItemName());
|
||||
}
|
||||
|
||||
iterator.addInstance(instance);
|
||||
started = true;
|
||||
|
||||
|
|
Loading…
Reference in New Issue