summaryrefslogtreecommitdiff
path: root/libraries/OBD/OBD.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/OBD/OBD.cpp')
-rw-r--r--libraries/OBD/OBD.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libraries/OBD/OBD.cpp b/libraries/OBD/OBD.cpp
index 172730e..b881f73 100644
--- a/libraries/OBD/OBD.cpp
+++ b/libraries/OBD/OBD.cpp
@@ -218,9 +218,9 @@ bool COBD::getResult(byte& pid, int& result)
return true;
}
-void COBD::setProtocol(byte h)
+void COBD::setProtocol(OBD_PROTOCOLS h)
{
- if (h == -1) {
+ if (h == PROTO_AUTO) {
write("ATSP00\r");
} else {
char cmd[8];