feat: add waitFor() and drain() to LocationProvider to support sending commands to GPS

This commit is contained in:
taco committed 2026-09-29 20:10:51 +10:00
1 parent 5ce6657546
commit b463f4dbd1
2 files changed
+23

No files matched your search

+2
View File
@@ -17,6 +17,8 @@ public:
virtual bool isValid() = 0;
virtual long getTimestamp() = 0;
virtual void sendSentence(const char * sentence);
virtual bool waitFor(const char* prefix, uint32_t timeout_ms) { return false; }
virtual void drain() { }
virtual void reset() = 0;
virtual void begin() = 0;
virtual void stop() = 0;