diff options
author | Stanley Huang <stanleyhuangyc@gmail.com> | 2014-08-29 22:06:56 +1000 |
---|---|---|
committer | Stanley Huang <stanleyhuangyc@gmail.com> | 2014-08-29 22:06:56 +1000 |
commit | c2b64916764395ea3cda7b237893c396ee2c1d4e (patch) | |
tree | 31a09756638d0d51c9bb14ab1acf1e3f7c2d2f37 /libraries/OBD/OBD.cpp | |
parent | 5c134ab7cbbe0a9e18cdbe4d62530a6510dda43f (diff) | |
download | 2021-arduino-obd-c2b64916764395ea3cda7b237893c396ee2c1d4e.tar.gz 2021-arduino-obd-c2b64916764395ea3cda7b237893c396ee2c1d4e.tar.bz2 2021-arduino-obd-c2b64916764395ea3cda7b237893c396ee2c1d4e.zip |
added protocol enums for setProtocol()
Diffstat (limited to 'libraries/OBD/OBD.cpp')
-rw-r--r-- | libraries/OBD/OBD.cpp | 4 |
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]; |