summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWesley T. Honeycutt <wessubba8888@yahoo.com>2018-05-22 23:38:46 +0200
committerDiego Elio Pettenò <flameeyes@flameeyes.com>2018-05-23 00:36:45 +0200
commiteee15bab2a7c2c80e240c81b139c40ae17f41b16 (patch)
tree9538e2c3fcb28f68bb1ed8392e716902cc6a6bdd
parentAdd double quotes according to @arvchristos suggestion on 'Example Usage' section (diff)
downloadglucometerutils-eee15bab2a7c2c80e240c81b139c40ae17f41b16.tar
glucometerutils-eee15bab2a7c2c80e240c81b139c40ae17f41b16.tar.gz
glucometerutils-eee15bab2a7c2c80e240c81b139c40ae17f41b16.tar.bz2
glucometerutils-eee15bab2a7c2c80e240c81b139c40ae17f41b16.tar.lz
glucometerutils-eee15bab2a7c2c80e240c81b139c40ae17f41b16.tar.xz
glucometerutils-eee15bab2a7c2c80e240c81b139c40ae17f41b16.tar.zst
glucometerutils-eee15bab2a7c2c80e240c81b139c40ae17f41b16.zip
-rw-r--r--glucometerutils/drivers/fsprecisionneo.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/glucometerutils/drivers/fsprecisionneo.py b/glucometerutils/drivers/fsprecisionneo.py
index cb58263..296c943 100644
--- a/glucometerutils/drivers/fsprecisionneo.py
+++ b/glucometerutils/drivers/fsprecisionneo.py
@@ -81,7 +81,11 @@ class Device(freestyle.FreeStyleHidDevice):
# Build a _reading object by parsing each of the entries in the raw
# record
- values = [int(v) for v in record]
+ values = []
+ for v in record:
+ if v == "HI":
+ v = 999
+ values.append(int(v))
raw_reading = _NeoReading._make(values[:len(_NeoReading._fields)])
timestamp = datetime.datetime(