From 34e7c10b5763cd6d8f63a4c24b317268d45c449f Mon Sep 17 00:00:00 2001 From: Bradley Date: Wed, 14 Sep 2016 18:40:55 -0400 Subject: [PATCH] Merge remote-tracking branch 'origin/master' dropping support for python 3.2 python 3.2 has an ugly problem where Unicode strings (the default in python 3) couldn't be used in binascii functions. This broke a lot of calls to unhexlify. --- .idea/misc.xml | 14 ++++++++++++++ .idea/modules.xml | 8 ++++++++ .idea/python-OBD.iml | 8 ++++++++ .idea/workspace.xml | 42 ++++++++++++++++++++++++++++++++++++++++++ .travis.yml | 1 - obd/UnitsAndScaling.py | 5 ++--- 6 files changed, 74 insertions(+), 4 deletions(-) create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/python-OBD.iml create mode 100644 .idea/workspace.xml 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/.travis.yml b/.travis.yml index ad22f32f..3bbfeffd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,7 +2,6 @@ language: python python: - 2.7 - - 3.2 - 3.3 - 3.4 - 3.5 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),