mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-29 02:51:17 +00:00
redefine hasLock() for UBlox GPS
This commit is contained in:
parent
25841c072a
commit
5cf1a87657
@ -196,6 +196,11 @@ bool UBloxGPS::lookForLocation()
|
|||||||
return foundLocation;
|
return foundLocation;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool UBloxGPS::hasLock()
|
||||||
|
{
|
||||||
|
return (fixType >= 3 && fixType <= 4);
|
||||||
|
}
|
||||||
|
|
||||||
bool UBloxGPS::whileIdle()
|
bool UBloxGPS::whileIdle()
|
||||||
{
|
{
|
||||||
// if using i2c or serial look too see if any chars are ready
|
// if using i2c or serial look too see if any chars are ready
|
||||||
|
@ -54,6 +54,7 @@ class UBloxGPS : public GPS
|
|||||||
* @return true if we've acquired a new location
|
* @return true if we've acquired a new location
|
||||||
*/
|
*/
|
||||||
virtual bool lookForLocation();
|
virtual bool lookForLocation();
|
||||||
|
virtual bool hasLock();
|
||||||
|
|
||||||
/// If possible force the GPS into sleep/low power mode
|
/// If possible force the GPS into sleep/low power mode
|
||||||
virtual void sleep();
|
virtual void sleep();
|
||||||
|
Loading…
Reference in New Issue
Block a user