diff options
author | Diego Elio Pettenò <flameeyes@flameeyes.eu> | 2017-06-15 23:20:42 +0200 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@flameeyes.eu> | 2017-06-15 23:20:42 +0200 |
commit | ecc4244c9368bd2020ad7f5e60629409f6215a5c (patch) | |
tree | f3055fb393c8a042c0907dc83c1adada5bf417f9 | |
parent | hiddevice: default to no timeout, like before. (diff) | |
download | glucometerutils-ecc4244c9368bd2020ad7f5e60629409f6215a5c.tar glucometerutils-ecc4244c9368bd2020ad7f5e60629409f6215a5c.tar.gz glucometerutils-ecc4244c9368bd2020ad7f5e60629409f6215a5c.tar.bz2 glucometerutils-ecc4244c9368bd2020ad7f5e60629409f6215a5c.tar.lz glucometerutils-ecc4244c9368bd2020ad7f5e60629409f6215a5c.tar.xz glucometerutils-ecc4244c9368bd2020ad7f5e60629409f6215a5c.tar.zst glucometerutils-ecc4244c9368bd2020ad7f5e60629409f6215a5c.zip |
-rw-r--r-- | glucometerutils/support/freestyle.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/glucometerutils/support/freestyle.py b/glucometerutils/support/freestyle.py index 0e71c03..d722c35 100644 --- a/glucometerutils/support/freestyle.py +++ b/glucometerutils/support/freestyle.py @@ -13,6 +13,7 @@ __license__ = 'MIT' import csv import datetime +import logging import re import struct @@ -221,4 +222,6 @@ class FreeStyleHidDevice(hiddevice.HidDevice): records_str = match.group('message') _verify_checksum(records_str, match.group('checksum')) + logging.debug('Received multi-record string: %s', records_str) + return csv.reader(records_str.split('\r\n')) |