summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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,