summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorONO,Tetsuo <toono@g-plains.net>2021-09-16 14:23:51 +0200
committerDiego Elio Pettenò <flameeyes@flameeyes.com>2021-09-18 18:45:25 +0200
commit612f5bf8524376a9af01f77d43b4e44da04efd4f (patch)
tree23902713a64aa79876ee4000c39ef39bcd84c22c
parentUpdate fsprecisionneo.py (diff)
downloadglucometerutils-612f5bf8524376a9af01f77d43b4e44da04efd4f.tar
glucometerutils-612f5bf8524376a9af01f77d43b4e44da04efd4f.tar.gz
glucometerutils-612f5bf8524376a9af01f77d43b4e44da04efd4f.tar.bz2
glucometerutils-612f5bf8524376a9af01f77d43b4e44da04efd4f.tar.lz
glucometerutils-612f5bf8524376a9af01f77d43b4e44da04efd4f.tar.xz
glucometerutils-612f5bf8524376a9af01f77d43b4e44da04efd4f.tar.zst
glucometerutils-612f5bf8524376a9af01f77d43b4e44da04efd4f.zip
-rw-r--r--glucometerutils/drivers/fsprecisionneo.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/glucometerutils/drivers/fsprecisionneo.py b/glucometerutils/drivers/fsprecisionneo.py
index b26d58c..ddec9b2 100644
--- a/glucometerutils/drivers/fsprecisionneo.py
+++ b/glucometerutils/drivers/fsprecisionneo.py
@@ -56,8 +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"))
+ elif record[idx] == "LO":
+ setattr(self, field.name, -float("inf"))
else:
setattr(self, field.name, int(record[idx]))