fsm WIP might work

This commit is contained in:
geeksville
2020-02-22 13:14:10 -08:00
parent 509f9b6e2b
commit c7894f3bc5
8 changed files with 45 additions and 31 deletions

View File

@@ -137,6 +137,12 @@ void GPS::doTask()
setPeriod(hasValidLocation && !wantNewLocation ? 30 * 1000 : 100);
}
void GPS::startLock()
{
wantNewLocation = true;
setPeriod(1);
}
String GPS::getTimeStr()
{
static char t[12]; // used to sprintf for Serial output