diff options
author | Stanley Huang <stanleyhuangyc@gmail.com> | 2013-04-02 16:00:26 +0800 |
---|---|---|
committer | Stanley Huang <stanleyhuangyc@gmail.com> | 2013-04-02 16:00:26 +0800 |
commit | f2a3687634dfcf1ad7b8ea5ae241cefffbb37614 (patch) | |
tree | 30e1cd66414a601ce09896472a18a64abc9c6d6d /obdlogger | |
parent | 9e2dd0fbafa3e56885ca30f321bf03501de423b9 (diff) | |
download | 2021-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.ino | 3 |
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 } }; |