diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 00000000..d93c344a --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 00000000..177c801e --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/python-OBD.iml b/.idea/python-OBD.iml new file mode 100644 index 00000000..d0876a78 --- /dev/null +++ b/.idea/python-OBD.iml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 00000000..cbbc05a9 --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + 1475848658461 + + + + + + + + + + \ No newline at end of file diff --git a/obd/UnitsAndScaling.py b/obd/UnitsAndScaling.py index 0d58de39..6aa21d4c 100644 --- a/obd/UnitsAndScaling.py +++ b/obd/UnitsAndScaling.py @@ -43,7 +43,6 @@ Unit.define("ppm = count / 1000000 = PPM = parts_per_million") - class UAS(): """ Class for representing a Unit and Scale conversion @@ -77,8 +76,8 @@ def __call__(self, _bytes): 0x05 : UAS(False, 0.0000305, Unit.count), 0x06 : UAS(False, 0.000305, Unit.count), 0x07 : UAS(False, 0.25, Unit.rpm), - 0x08 : UAS(False, 0.01, Unit.kph), - 0x09 : UAS(False, 1, Unit.kph), + 0x08 : UAS(False, 0.01, Unit.mph), + 0x09 : UAS(False, 1, Unit.mph), 0x0A : UAS(False, 0.122, Unit.millivolt), 0x0B : UAS(False, 0.001, Unit.volt), 0x0C : UAS(False, 0.01, Unit.volt),