From 22585d4ab21de6dcd8f9ad5f724e8d411854a6c7 Mon Sep 17 00:00:00 2001 From: Stefanie Tellex Date: Sat, 30 Oct 2021 12:33:47 -0400 Subject: working dump --- glucometerutils/drivers/fsfreedomlite.py | 152 ++++++++++++------------------- 1 file changed, 57 insertions(+), 95 deletions(-) diff --git a/glucometerutils/drivers/fsfreedomlite.py b/glucometerutils/drivers/fsfreedomlite.py index f2a9db8..fe9acd1 100644 --- a/glucometerutils/drivers/fsfreedomlite.py +++ b/glucometerutils/drivers/fsfreedomlite.py @@ -1,3 +1,4 @@ + # -*- coding: utf-8 -*- # # SPDX-FileCopyrightText: © 2021 Stefanie Tellex @@ -14,7 +15,7 @@ Expected device path: /dev/ttyUSB0 or similar serial port device. Further information on the device protocol can be found at -https://protocols.glucometers.tech/abbott/freestyle-optium +https://protocols.glucometers.tech/abbott/freestyle-lite.html """ import datetime @@ -25,11 +26,16 @@ from typing import Generator, NoReturn, Sequence from glucometerutils import common, driver, exceptions from glucometerutils.support import serial -_CLOCK_RE = re.compile( - r"^Clock:\t(?P[A-Z][a-z]{2}) (?P[0-9]{2}) (?P[0-9]{4})\t" +_CLOCK_INIT_RE = re.compile( + r"^(?P[A-Z][a-z]{2}) (?P[0-9]{2}) (?P[0-9]{4}) " r"(?P