More GPS work (#2711)

Increase GPS buffer on esp32
Check for and flush GPS buffer when overfilled and corrupted.

Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
This commit is contained in:
Jonathan Bennett
2023-08-12 09:29:44 -05:00
committed by GitHub
parent 6e0b6684ee
commit c44986127e
4 changed files with 21 additions and 3 deletions

View File

@@ -91,6 +91,9 @@ class GPS : private concurrency::OSThread
// Some GPS modules (ublock) require factory reset
virtual bool factoryReset() { return true; }
// Empty the input buffer as quickly as possible
void clearBuffer();
protected:
/// Do gps chipset specific init, return true for success
virtual bool setupGPS();