summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStanley Huang <stanleyhuangyc@gmail.com>2017-03-10 23:18:13 +1100
committerStanley Huang <stanleyhuangyc@gmail.com>2017-03-10 23:18:13 +1100
commit0f0737261c2bfb995b6e74c315d208c8eeb79d85 (patch)
tree90537a2954bdaca26f5120c1560e82eb72c04a0d
parent8a1fd948ff4757dd977f0b708d39370f49d337d7 (diff)
download2021-arduino-obd-0f0737261c2bfb995b6e74c315d208c8eeb79d85.tar.gz
2021-arduino-obd-0f0737261c2bfb995b6e74c315d208c8eeb79d85.tar.bz2
2021-arduino-obd-0f0737261c2bfb995b6e74c315d208c8eeb79d85.zip
Fixed a possible compilation issue
-rw-r--r--libraries/OBD/OBD.cpp2
-rw-r--r--libraries/OBD2UART/OBD2UART.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/libraries/OBD/OBD.cpp b/libraries/OBD/OBD.cpp
index 38b782e..f23da93 100644
--- a/libraries/OBD/OBD.cpp
+++ b/libraries/OBD/OBD.cpp
@@ -464,7 +464,7 @@ bool COBD::memsInit()
return sendCommand("ATTEMP\r", buf, sizeof(buf)) > 0 && !strchr(buf, '?');
}
-bool COBD::memsRead(int* acc, int* gyr = 0, int* mag = 0, int* temp = 0)
+bool COBD::memsRead(int* acc, int* gyr, int* mag, int* temp)
{
char buf[64];
bool success;
diff --git a/libraries/OBD2UART/OBD2UART.cpp b/libraries/OBD2UART/OBD2UART.cpp
index 99f1e7b..fd6b35d 100644
--- a/libraries/OBD2UART/OBD2UART.cpp
+++ b/libraries/OBD2UART/OBD2UART.cpp
@@ -462,7 +462,7 @@ bool COBD::memsInit()
return sendCommand("ATTEMP\r", buf, sizeof(buf)) > 0 && !strchr(buf, '?');
}
-bool COBD::memsRead(int* acc, int* gyr = 0, int* mag = 0, int* temp = 0)
+bool COBD::memsRead(int* acc, int* gyr, int* mag, int* temp)
{
char buf[64];
bool success;