From 33999a3101275925071ad9f5b2b31d914e2c6b94 Mon Sep 17 00:00:00 2001 From: Stanley Huang Date: Wed, 31 Jan 2018 22:32:00 +1100 Subject: Fix typo --- libraries/OBD2UART/OBD2UART.cpp | 6 +----- 1 file changed, 1 insertion(+), 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; -- cgit v1.2.3