while not perfect, good enough to move power statemachine to master

This commit is contained in:
geeksville
2020-02-22 14:56:19 -08:00
parent ca37e50362
commit a1a1ceb94d
4 changed files with 16 additions and 15 deletions

View File

@@ -12,7 +12,7 @@ RTC_DATA_ATTR bool timeSetFromGPS; // We only reset our time once per _boot_ aft
GPS gps;
bool hasValidLocation; // default to false, until we complete our first read
bool wantNewLocation;
bool wantNewLocation = true;
GPS::GPS() : PeriodicTask()
{
@@ -139,6 +139,7 @@ void GPS::doTask()
void GPS::startLock()
{
DEBUG_MSG("Looking for GPS lock\n");
wantNewLocation = true;
setPeriod(1);
}