mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-06 19:00:27 +08:00
AP_OpticalFlow: allow to search on I2C bus 2
This commit is contained in:
@@ -55,7 +55,7 @@ AP_OpticalFlow_PX4Flow *AP_OpticalFlow_PX4Flow::detect(OpticalFlow &_frontend)
|
||||
*/
|
||||
bool AP_OpticalFlow_PX4Flow::scan_buses(void)
|
||||
{
|
||||
for (uint8_t bus=0; bus<2; bus++) {
|
||||
for (uint8_t bus = 0; bus < 3; bus++) {
|
||||
#ifdef HAL_OPTFLOW_PX4FLOW_I2C_BUS
|
||||
// only one bus from HAL
|
||||
if (bus != HAL_OPTFLOW_PX4FLOW_I2C_BUS) {
|
||||
|
||||
Reference in New Issue
Block a user