From f2a3687634dfcf1ad7b8ea5ae241cefffbb37614 Mon Sep 17 00:00:00 2001 From: Stanley Huang Date: Tue, 2 Apr 2013 16:00:26 +0800 Subject: fix build issues --- obdlogger/obdlogger.ino | 3 +++ 1 file changed, 3 insertions(+) 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 } }; -- cgit v1.2.3