diff options
author | Wesley T. Honeycutt <wessubba8888@yahoo.com> | 2018-05-22 23:38:46 +0200 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@flameeyes.com> | 2018-05-23 00:36:45 +0200 |
commit | eee15bab2a7c2c80e240c81b139c40ae17f41b16 (patch) | |
tree | 9538e2c3fcb28f68bb1ed8392e716902cc6a6bdd | |
parent | Add double quotes according to @arvchristos suggestion on 'Example Usage' section (diff) | |
download | glucometerutils-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.py | 6 |
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( |