mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 07:43:33 +08:00
i2c: use board-specific bus numbering for '-X -b <bus>' CLI
As boards don't have their external buses labeled consistently, it was not useful to use an abstraction.
This commit is contained in:
@@ -73,7 +73,7 @@ bool I2CBusIterator::next()
|
||||
if (px4_i2c_bus_external(bus_data)) {
|
||||
++_external_bus_counter;
|
||||
|
||||
if (_bus == _external_bus_counter || _bus == -1) {
|
||||
if (_bus == bus_data.bus || _bus == -1) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user