summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStanley Huang <stanleyhuangyc@gmail.com>2018-01-31 22:32:00 +1100
committerStanley Huang <stanleyhuangyc@gmail.com>2018-01-31 22:32:00 +1100
commit33999a3101275925071ad9f5b2b31d914e2c6b94 (patch)
tree14719bbe686505bb04a067b44db35240ad174fd7
parent25d95246ea97492ac0979d27e807ff3e8e3a9775 (diff)
download2021-arduino-obd-33999a3101275925071ad9f5b2b31d914e2c6b94.tar.gz
2021-arduino-obd-33999a3101275925071ad9f5b2b31d914e2c6b94.tar.bz2
2021-arduino-obd-33999a3101275925071ad9f5b2b31d914e2c6b94.zip
Fix typo
-rw-r--r--libraries/OBD2UART/OBD2UART.cpp6
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;