From f9f937f54c528aefe5f9504f8bb3f341f3dcb7aa Mon Sep 17 00:00:00 2001 From: Stanley Huang Date: Fri, 4 Apr 2014 11:23:32 +0800 Subject: Minor updates --- libraries/OBD/OBD.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libraries/OBD/OBD.h') diff --git a/libraries/OBD/OBD.h b/libraries/OBD/OBD.h index 22d9f12..2718eb2 100644 --- a/libraries/OBD/OBD.h +++ b/libraries/OBD/OBD.h @@ -10,7 +10,7 @@ #define OBD_TIMEOUT_SHORT 2000 /* ms */ #define OBD_TIMEOUT_LONG 7000 /* ms */ #define OBD_SERIAL_BAUDRATE 38400 -#define OBD_RECV_BUF_SIZE 80 +#define OBD_RECV_BUF_SIZE 128 #ifndef OBDUART #if defined(__AVR_ATmega32U4__) || defined(__AVR_ATmega2560__) || defined(__AVR_ATmega1280__) || defined(__AVR_ATmega644P__) @@ -155,7 +155,7 @@ public: // GPS API bool gpsQuery(GPS_DATA* gpsdata); void gpsSetup(uint32_t baudrate, const char* cmds = 0); -private: +protected: bool sendCommand(byte cmd, uint8_t data = 0, byte* payload = 0, byte payloadBytes = 0); byte receive(char* buffer, int timeout = OBD_TIMEOUT_SHORT); byte m_addr; -- cgit v1.2.3