From deeb97c33713b2fa176f935267aa9595f863a7d2 Mon Sep 17 00:00:00 2001 From: sprintf Date: Sat, 22 May 2021 15:38:32 -0700 Subject: [PATCH 1/4] fixes OBD incompatibility For cheap amazon OBD USB connector this is needed --- obd/elm327.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/obd/elm327.py b/obd/elm327.py index 96b1b4dd..346c53a4 100644 --- a/obd/elm327.py +++ b/obd/elm327.py @@ -545,7 +545,7 @@ def __read(self): # end on chevron (ELM prompt character) or an 'OK' which # indicates we are entering low power state - if self.ELM_PROMPT in buffer or self.ELM_LP_ACTIVE in buffer: + if self.ELM_PROMPT in buffer or ((self.ELM_LP_ACTIVE in buffer) and (b"BUS INIT: OK\r" not in buffer)): break # log, and remove the "bytearray( ... )" part From 0a9f78638b3b5fbacf5ae8faf401736ff26172d2 Mon Sep 17 00:00:00 2001 From: sprintf Date: Sun, 8 Jan 2023 11:19:02 -0800 Subject: [PATCH 2/4] updates dependency on Pint so that python 3.10 will be supported --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 17a9c7e8..c0936440 100644 --- a/setup.py +++ b/setup.py @@ -30,5 +30,5 @@ packages=find_packages(), include_package_data=True, zip_safe=False, - install_requires=["pyserial==3.*", "pint==0.7.*"], + install_requires=["pyserial==3.*", "pint==0.20.*"], ) From a28aa7b8d9c96fd1f9202194898d9ed019b4adf4 Mon Sep 17 00:00:00 2001 From: sprintf Date: Sun, 8 Jan 2023 21:09:31 -0800 Subject: [PATCH 3/4] switches back dependency on Pint, as python 3.10 is a no go ... back to 3.7 I hope --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index c0936440..17a9c7e8 100644 --- a/setup.py +++ b/setup.py @@ -30,5 +30,5 @@ packages=find_packages(), include_package_data=True, zip_safe=False, - install_requires=["pyserial==3.*", "pint==0.20.*"], + install_requires=["pyserial==3.*", "pint==0.7.*"], ) From 6576dddd9d52c240b2614ae0d152cd2f53cca537 Mon Sep 17 00:00:00 2001 From: sprintf Date: Sun, 8 Jan 2023 21:09:31 -0800 Subject: [PATCH 4/4] switches back dependency on Pint, as python 3.10 is a no go ... back to 3.7 I hope --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index a5e30300..12e177dd 100644 --- a/setup.py +++ b/setup.py @@ -30,5 +30,5 @@ packages=find_packages(), include_package_data=True, zip_safe=False, - install_requires=["pyserial==3.*", "pint==0.20.*"], + install_requires=["pyserial==3.*", "pint==0.7.*"], )