Skip to content

Conversation

peterbarker
Copy link
Contributor

…and iterator

if you are about to index something, directly use its size for your sanity check.

Or avoid the check altogether by using an iterator.

Tested on a Pixhawk6X with a Here4 GPS and its two internal baros. No change in behaviour vs master

…and iterator

if you are about to index something, directly use its size for your sanity check.

Or avoid the check altogether by using an iterator.
@peterbarker
Copy link
Contributor Author

A trivial follow-up PR will remove BARO_MAX_DRIVERS and just use BARO_MAX_INSTANCES everywhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Development

Successfully merging this pull request may close these issues.

1 participant