summaryrefslogtreecommitdiff
path: root/obdlogger
diff options
context:
space:
mode:
authorStanley Huang <stanleyhuangyc@gmail.com>2013-04-02 16:00:26 +0800
committerStanley Huang <stanleyhuangyc@gmail.com>2013-04-02 16:00:26 +0800
commitf2a3687634dfcf1ad7b8ea5ae241cefffbb37614 (patch)
tree30e1cd66414a601ce09896472a18a64abc9c6d6d /obdlogger
parent9e2dd0fbafa3e56885ca30f321bf03501de423b9 (diff)
download2021-arduino-obd-f2a3687634dfcf1ad7b8ea5ae241cefffbb37614.tar.gz
2021-arduino-obd-f2a3687634dfcf1ad7b8ea5ae241cefffbb37614.tar.bz2
2021-arduino-obd-f2a3687634dfcf1ad7b8ea5ae241cefffbb37614.zip
fix build issues
Diffstat (limited to 'obdlogger')
-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
}
};