From 4396e371b3ca75b8636e88f21b4048c46c8da277 Mon Sep 17 00:00:00 2001 From: "ONO,Tetsuo" Date: Wed, 15 Sep 2021 11:13:33 +0900 Subject: Update fsprecisionneo.py Sometimes I gets "LO" record (lower-than 30 ) on using Precision Neo . --- glucometerutils/drivers/fsprecisionneo.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/glucometerutils/drivers/fsprecisionneo.py b/glucometerutils/drivers/fsprecisionneo.py index 8dab52b..b26d58c 100644 --- a/glucometerutils/drivers/fsprecisionneo.py +++ b/glucometerutils/drivers/fsprecisionneo.py @@ -56,6 +56,8 @@ class _NeoReading: for idx, field in enumerate(dataclasses.fields(self)): if record[idx] == "HI": setattr(self, field.name, float("inf")) + elif record[idx] =="LO": + setattr(self,field.name, -float("inf")) else: setattr(self, field.name, int(record[idx])) -- cgit v1.2.3