From 3322a146867dc370d5e35d27be6bc8d3d37c30b8 Mon Sep 17 00:00:00 2001 From: Stanley Huang Date: Tue, 14 May 2013 16:06:21 +0800 Subject: move dataMode to private section --- obdlogger/OBD.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }; -- cgit v1.2.3