Skip to content

Commit d0cb321

Browse files
author
Brendan Whitfield
committed
switched to ATSPA8 for auto protocol detection
1 parent 5ba24a3 commit d0cb321

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

obd/elm327.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,14 +120,13 @@ def __init__(self, portname):
120120
return
121121

122122

123-
# ----------------------- ATSP0 (protocol AUTO) -----------------------
124-
r = self.__send("ATSP0")
123+
# ----------------------- ATSPA8 (protocol AUTO) -----------------------
124+
r = self.__send("ATSPA8")
125125
r = strip(r)
126126
if r != 'OK':
127127
self.__error("ATSP0 did not return 'OK'")
128128
return
129129

130-
131130
# -------------- 0100 (first command, SEARCH protocols) --------------
132131
r0100 = self.__send("0100", delay=3) # give it a second (or three) to search
133132

0 commit comments

Comments
 (0)