mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
i2c_spi_buses:Support devices that may change address
This commit is contained in:
committed by
Daniel Agar
parent
84066f574d
commit
f70381dfdd
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user