mirror of
https://github.com/meshtastic/firmware.git
synced 2025-09-17 07:46:31 +00:00
meh
This commit is contained in:
parent
6466661c38
commit
3d52f8fb12
@ -1107,7 +1107,13 @@ int32_t GPS::runOnce()
|
||||
// clear the GPS rx/tx buffer as quickly as possible
|
||||
void GPS::clearBuffer()
|
||||
{
|
||||
#ifdef ARCH_ESP32
|
||||
_serial_gps->flush(false);
|
||||
#else
|
||||
int x = _serial_gps->available();
|
||||
while (x--)
|
||||
_serial_gps->read();
|
||||
#endif
|
||||
}
|
||||
|
||||
/// Prepare the GPS for the cpu entering deep or light sleep, expect to be gone for at least 100s of msecs
|
||||
|
Loading…
Reference in New Issue
Block a user