Skip to content

Commit

Permalink
Make Ublox code more readable (#4727)
Browse files Browse the repository at this point in the history
* Simplify Ublox code

Ublox comes in a myriad of versions and settings. Presently our
configuration code does a lot of branching based on versions being
or not being present.

This patch adds version detection earlier in the piece and branches
on the set gnssModel instead to create separate setup methods for Ublox 6,
Ublox 7/8/9, and Ublox10.

Additionally, adds a macro to make the code much shorter and more
readable.

* Make trunk happy

* Make trunk happy

---------

Co-authored-by: Ben Meadors <[email protected]>
  • Loading branch information
2 people authored and mverch67 committed Sep 23, 2024
1 parent c356bec commit cbaee64
Show file tree
Hide file tree
Showing 3 changed files with 159 additions and 256 deletions.
Loading

0 comments on commit cbaee64

Please sign in to comment.