We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e4876a commit 9f2df62Copy full SHA for 9f2df62
2 files changed
obd/async.py
@@ -38,8 +38,8 @@
38
class Async(OBD):
39
""" subclass representing an OBD-II connection """
40
41
- def __init__(self, portstr=None):
42
- super(Async, self).__init__(portstr)
+ def __init__(self, portstr=None, baudrate=38400):
+ super(Async, self).__init__(portstr, baudrate)
43
self.commands = {} # key = OBDCommand, value = Response
44
self.callbacks = {} # key = OBDCommand, value = list of Functions
45
self.thread = None
obd/utils.py
@@ -94,9 +94,6 @@ def ascii_to_bytes(a):
94
b.append(int(a[i:i+2], 16))
95
return b
96
97
-def strip(s):
98
- return "".join(s.split())
99
-
100
def numBitsSet(n):
101
# TODO: there must be a better way to do this...
102
total = 0
0 commit comments