From c2b64916764395ea3cda7b237893c396ee2c1d4e Mon Sep 17 00:00:00 2001 From: Stanley Huang Date: Fri, 29 Aug 2014 22:06:56 +1000 Subject: added protocol enums for setProtocol() --- libraries/OBD/OBD.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libraries/OBD/OBD.cpp') 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]; -- cgit v1.2.3