diff options
author | Stanley Huang <stanleyhuangyc@gmail.com> | 2018-01-31 22:32:00 +1100 |
---|---|---|
committer | Stanley Huang <stanleyhuangyc@gmail.com> | 2018-01-31 22:32:00 +1100 |
commit | 33999a3101275925071ad9f5b2b31d914e2c6b94 (patch) | |
tree | 14719bbe686505bb04a067b44db35240ad174fd7 /libraries/OBD2UART | |
parent | 25d95246ea97492ac0979d27e807ff3e8e3a9775 (diff) | |
download | 2021-arduino-obd-33999a3101275925071ad9f5b2b31d914e2c6b94.tar.gz 2021-arduino-obd-33999a3101275925071ad9f5b2b31d914e2c6b94.tar.bz2 2021-arduino-obd-33999a3101275925071ad9f5b2b31d914e2c6b94.zip |
Fix typo
Diffstat (limited to 'libraries/OBD2UART')
-rw-r--r-- | libraries/OBD2UART/OBD2UART.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libraries/OBD2UART/OBD2UART.cpp b/libraries/OBD2UART/OBD2UART.cpp index 826b3d2..76968b9 100644 --- a/libraries/OBD2UART/OBD2UART.cpp +++ b/libraries/OBD2UART/OBD2UART.cpp @@ -9,10 +9,6 @@ //#define DEBUG Serial -#ifdef ESP32 -extern HardwareSerial Serial1; -#endif - uint16_t hex2uint16(const char *p) { char c = *p; @@ -555,7 +551,7 @@ int16_t COBD::getTemperatureValue(char* data) bool COBD::memsInit(bool fusion) { char buf[16]; - if (!sendCommand("ATTEMP\r", buf, sizeof(buf)) > 0 || strchr(buf, '?')) + if (sendCommand("ATTEMP\r", buf, sizeof(buf)) <= 0 || strchr(buf, '?')) return false; if (fusion) { m_fusion = true; |