summaryrefslogtreecommitdiff
path: root/libraries/OBD/OBD.h
diff options
context:
space:
mode:
authorStanley Huang <stanleyhuangyc@gmail.com>2014-04-04 11:23:32 +0800
committerStanley Huang <stanleyhuangyc@gmail.com>2014-04-04 11:23:32 +0800
commitf9f937f54c528aefe5f9504f8bb3f341f3dcb7aa (patch)
treeff22a2e1d6913b441d7aab24e9ac49c345fe36cf /libraries/OBD/OBD.h
parent52ec349f08b80cfe773c2919b392b02f9f071b7f (diff)
download2021-arduino-obd-f9f937f54c528aefe5f9504f8bb3f341f3dcb7aa.tar.gz
2021-arduino-obd-f9f937f54c528aefe5f9504f8bb3f341f3dcb7aa.tar.bz2
2021-arduino-obd-f9f937f54c528aefe5f9504f8bb3f341f3dcb7aa.zip
Minor updates
Diffstat (limited to 'libraries/OBD/OBD.h')
-rw-r--r--libraries/OBD/OBD.h4
1 files changed, 2 insertions, 2 deletions
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;