From ecc4244c9368bd2020ad7f5e60629409f6215a5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= Date: Thu, 15 Jun 2017 22:20:42 +0100 Subject: freestyle: add some debugging information. --- glucometerutils/support/freestyle.py | 3 +++ 1 file changed, 3 insertions(+) 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')) -- cgit v1.2.3