mirror of
https://github.com/meshtastic/firmware.git
synced 2025-09-18 00:06:10 +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
|
// clear the GPS rx/tx buffer as quickly as possible
|
||||||
void GPS::clearBuffer()
|
void GPS::clearBuffer()
|
||||||
{
|
{
|
||||||
|
#ifdef ARCH_ESP32
|
||||||
_serial_gps->flush(false);
|
_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
|
/// 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