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

how about public methods to flush date/location #142

Open
knormoyle opened this issue Dec 16, 2024 · 0 comments
Open

how about public methods to flush date/location #142

knormoyle opened this issue Dec 16, 2024 · 0 comments

Comments

@knormoyle
Copy link

to be used when you send a warm or cold reset to the gps chip, and don't want to be using any old state in TinyGPS++ anymore..i.e. want to wait for new state from gps chip after it's reset

i.e. a need to flush date and location state:

TinyGPS++.h

in TinyGPSLocation

//***************
// HACK: make public method and cover fixQuality and fixMode also
void flush() { updated = false; valid = false; }
void fixQualityFlush() { updated = false; fixQuality = Invalid; }
void fixModeFlush() { updated = false; fixMode = N; }
//***************

in TinyGPSDate

//*************
// HACK: make public method
void flush() { updated = false; valid = false; date = 0; }
//*************

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

No branches or pull requests

1 participant