AP_Proximity: fix get_boundary_points in case of multiple sensors

This commit is contained in:
Randy Mackay 2017-01-16 16:35:59 +09:00
parent 8aa100d164
commit 6aeef76768

View File

@ -304,7 +304,7 @@ const Vector2f* AP_Proximity::get_boundary_points(uint8_t instance, uint16_t& nu
return nullptr;
}
// get boundary from backend
return drivers[primary_instance]->get_boundary_points(num_points);
return drivers[instance]->get_boundary_points(num_points);
}
const Vector2f* AP_Proximity::get_boundary_points(uint16_t& num_points) const