summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStanley Huang <stanleyhuangyc@gmail.com>2013-05-14 16:06:21 +0800
committerStanley Huang <stanleyhuangyc@gmail.com>2013-05-14 16:06:21 +0800
commit3322a146867dc370d5e35d27be6bc8d3d37c30b8 (patch)
treef9b2d34c3a14bc6d25c0ba315879847455beb0b9
parentbb6d848c90e4b86ff5fbe4ab7bbef471b59d0dfd (diff)
download2021-arduino-obd-3322a146867dc370d5e35d27be6bc8d3d37c30b8.tar.gz
2021-arduino-obd-3322a146867dc370d5e35d27be6bc8d3d37c30b8.tar.bz2
2021-arduino-obd-3322a146867dc370d5e35d27be6bc8d3d37c30b8.zip
move dataMode to private section
-rw-r--r--obdlogger/OBD.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/obdlogger/OBD.h b/obdlogger/OBD.h
index e97ab67..9662dac 100644
--- a/obdlogger/OBD.h
+++ b/obdlogger/OBD.h
@@ -52,7 +52,7 @@ public:
void Query(byte pid);
char* GetResponse(byte& pid, char* buffer);
bool GetResponseParsed(byte& pid, int& result);
- byte dataMode;
+ void SetDataMode(byte mode) { dataMode = mode; }
byte errors;
//char recvBuf[OBD_RECV_BUF_SIZE];
protected:
@@ -80,4 +80,5 @@ protected:
virtual void InitIdleLoop() {}
virtual void DataIdleLoop() {}
byte pidmap[4 * 4];
+ byte dataMode;
};