Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GPS.h cleanups round 3. #5447

Merged

Conversation

charlieh0tel
Copy link
Contributor

@charlieh0tel charlieh0tel commented Nov 26, 2024

This should be the last round of cleanups that are simple.

No effective behavior change.

Protected members can be private so make it so.  (Supporting
subclasses needs a lot more work.)

Moves uBloxGnssModelInfo into file scope.

Moves uBloxProtocolVersion into uBloxGnssModelInfo.

Moves baud rate arrays into file scope.

Removes unused/ unimplemented powerStateToString.

@fifieldt
Copy link
Contributor

Looks like we don't have std:size:

src/gps/GPS.cpp:446:47: error: 'size' is not a member of 'std'
if (++speedSelect == std::size(serialSpeeds)) {

@charlieh0tel
Copy link
Contributor Author

charlieh0tel commented Nov 26, 2024 via email

@charlieh0tel charlieh0tel force-pushed the charlieh0tel/gps-cleanups-round-3 branch from 342bd65 to d2dd3d1 Compare November 26, 2024 04:30
@charlieh0tel charlieh0tel marked this pull request as draft November 26, 2024 04:34
@charlieh0tel charlieh0tel force-pushed the charlieh0tel/gps-cleanups-round-3 branch from d2dd3d1 to 921636b Compare November 26, 2024 04:54
@fifieldt
Copy link
Contributor

still draft?

@charlieh0tel charlieh0tel marked this pull request as ready for review November 26, 2024 17:24
@charlieh0tel
Copy link
Contributor Author

@fifieldt should be good to go.

@fifieldt fifieldt force-pushed the charlieh0tel/gps-cleanups-round-3 branch from 921636b to b2f177b Compare November 26, 2024 23:48
@fifieldt
Copy link
Contributor

argh, looks like trunk failed

charlieh0tel and others added 2 commits November 27, 2024 18:38
No effective behavior change.

Protected members can be private so make it so.  (Supporting
subclasses needs a lot more work.)

Moves uBloxGnssModelInfo into file scope.

Moves uBloxProtocolVersion into uBloxGnssModelInfo.

Moves baud rate arrays into file scope.

Removes unused/ unimplemented powerStateToString.

Signed-off-by: Christopher Hoover <[email protected]>
@fifieldt fifieldt force-pushed the charlieh0tel/gps-cleanups-round-3 branch from 822d285 to d3a26b2 Compare November 27, 2024 10:38
@fifieldt fifieldt merged commit b00c050 into meshtastic:master Nov 27, 2024
47 checks passed
@charlieh0tel charlieh0tel deleted the charlieh0tel/gps-cleanups-round-3 branch November 28, 2024 01:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants