i2c_spi_buses:Support devices that may change address

This commit is contained in:
David Sidrane
2021-08-20 10:15:57 -04:00
committed by Daniel Agar
parent 075cb39c34
commit 78b76cb636
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -683,7 +683,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);