summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@flameeyes.com>2021-03-27 19:02:04 +0100
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2021-03-27 19:07:08 +0100
commit4a4f45c3f6a90990f6da792b8f181442b2eacc39 (patch)
tree9c64e53bfa85e72c4d8c8a6945a9406f4c8decd6
parentRound mg/dL conversion to one decimal place. (diff)
downloadglucometerutils-4a4f45c3f6a90990f6da792b8f181442b2eacc39.tar
glucometerutils-4a4f45c3f6a90990f6da792b8f181442b2eacc39.tar.gz
glucometerutils-4a4f45c3f6a90990f6da792b8f181442b2eacc39.tar.bz2
glucometerutils-4a4f45c3f6a90990f6da792b8f181442b2eacc39.tar.lz
glucometerutils-4a4f45c3f6a90990f6da792b8f181442b2eacc39.tar.xz
glucometerutils-4a4f45c3f6a90990f6da792b8f181442b2eacc39.tar.zst
glucometerutils-4a4f45c3f6a90990f6da792b8f181442b2eacc39.zip
-rw-r--r--glucometerutils/support/serial.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/glucometerutils/support/serial.py b/glucometerutils/support/serial.py
index a9b4b85..68132e1 100644
--- a/glucometerutils/support/serial.py
+++ b/glucometerutils/support/serial.py
@@ -40,6 +40,7 @@ class SerialDevice:
"""
BAUDRATE: Optional[int] = None
+ PARITY: str = serial.PARITY_NONE
DEFAULT_CABLE_ID: Optional[str] = None
TIMEOUT: float = 1
@@ -62,7 +63,7 @@ class SerialDevice:
timeout=self.TIMEOUT,
writeTimeout=None,
bytesize=serial.EIGHTBITS,
- parity=serial.PARITY_NONE,
+ parity=self.PARITY,
stopbits=serial.STOPBITS_ONE,
xonxoff=False,
rtscts=False,