Skip to content

how about public methods to flush date/location  #142

@knormoyle

Description

@knormoyle

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; }
//*************

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions