i2c_spi_buses:Support devices that may change address

This commit is contained in:
David Sidrane
2021-08-18 13:46:40 -07:00
committed by Daniel Agar
parent 84066f574d
commit f70381dfdd
2 changed files with 3 additions and 1 deletions

View File

@@ -642,7 +642,7 @@ void I2CSPIDriverBase::print_status()
bool is_i2c_bus = _bus_option == I2CSPIBusOption::I2CExternal || _bus_option == I2CSPIBusOption::I2CInternal;
if (is_i2c_bus) {
PX4_INFO("Running on I2C Bus %i, Address 0x%02X", _bus, _i2c_address);
PX4_INFO("Running on I2C Bus %i, Address 0x%02X", _bus, get_i2c_address());
} else {
PX4_INFO("Running on SPI Bus %i", _bus);