summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--obdlogger/obdlogger.ino3
1 files changed, 3 insertions, 0 deletions
diff --git a/obdlogger/obdlogger.ino b/obdlogger/obdlogger.ino
index 9d55340..6956242 100644
--- a/obdlogger/obdlogger.ino
+++ b/obdlogger/obdlogger.ino
@@ -57,6 +57,8 @@ class COBD2 : public COBD
public:
void DataTimeout()
{
+#ifdef ENABLE_GPS
+ // detect GPS signal
while (Serial1.available()) {
if (gps.encode(Serial1.read())) {
if (datacount == 0) {
@@ -65,6 +67,7 @@ public:
}
}
}
+#endif
}
};