Skip to content

Commit

Permalink
sync with library update
Browse files Browse the repository at this point in the history
  • Loading branch information
stanleyhuangyc committed Sep 10, 2013
1 parent 2887361 commit 91146cb
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions megalogger/megalogger.ino
Expand Up @@ -298,9 +298,15 @@ public:
return true;
}
private:
void initIdleLoop()
void dataIdleLoop()
{
// called while initializing
if (getState() == OBD_CONNECTED) {
if (lastDataTime && GPSUART.available())
processGPS();
return;
}

// display while initializing
char buf[10];
unsigned int t = (millis() - startTime) / 1000;
sprintf(buf, "%02u:%02u", t / 60, t % 60);
Expand Down Expand Up @@ -332,11 +338,6 @@ private:
#endif
}
#ifdef GPSUART
void dataIdleLoop()
{
if (lastDataTime && GPSUART.available())
processGPS();
}
void processGPS()
{
// process GPS data
Expand Down

0 comments on commit 91146cb

Please sign in to comment.