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

UBX GPS Reset #9910

Merged
merged 10 commits into from
Jul 15, 2018
Merged

UBX GPS Reset #9910

merged 10 commits into from
Jul 15, 2018

Conversation

LorenzMeier
Copy link
Member

This change resets UBX GPS units on boot to ensure that even configured units go back to factory defaults.

@LorenzMeier LorenzMeier requested a review from bkueng July 15, 2018 14:26
@@ -263,6 +263,7 @@ extern "C" __EXPORT int gps_main(int argc, char *argv[]);
GPS::GPS(const char *path, gps_driver_mode_t mode, GPSHelper::Interface interface, bool fake_gps,
bool enable_sat_info, Instance instance) :
_serial_fd(-1),
_baudrate(0),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bkueng This was your scanning issue. The variable is used as state, but wasn't initialized properly.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, I had additional local changes. The submodule update needed to be in sync with that.

@LorenzMeier
Copy link
Member Author

This is good to go when it passes CI.

@dagar
Copy link
Member

dagar commented Jul 15, 2018

There were a couple other uninitialized fields, so I moved to the class definition and did them all.

@LorenzMeier LorenzMeier merged commit effeae9 into master Jul 15, 2018
@LorenzMeier LorenzMeier deleted the pr-update-gps-reset branch July 15, 2018 18:34
@dagar dagar added this to the Release v1.8.1 milestone Jul 27, 2018
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