summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@flameeyes.com>2021-03-01 23:52:01 +0100
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2021-03-01 23:55:20 +0100
commit2e04ed05f90400df52e7d22c316ff1c37ab01d11 (patch)
tree9e4554b8c5b10f27d6368d814711770ea787f970
parentfslibre: don't drop the first and last characters of the comment. (diff)
downloadglucometerutils-2e04ed05f90400df52e7d22c316ff1c37ab01d11.tar
glucometerutils-2e04ed05f90400df52e7d22c316ff1c37ab01d11.tar.gz
glucometerutils-2e04ed05f90400df52e7d22c316ff1c37ab01d11.tar.bz2
glucometerutils-2e04ed05f90400df52e7d22c316ff1c37ab01d11.tar.lz
glucometerutils-2e04ed05f90400df52e7d22c316ff1c37ab01d11.tar.xz
glucometerutils-2e04ed05f90400df52e7d22c316ff1c37ab01d11.tar.zst
glucometerutils-2e04ed05f90400df52e7d22c316ff1c37ab01d11.zip
-rw-r--r--glucometerutils/drivers/fslibre.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/glucometerutils/drivers/fslibre.py b/glucometerutils/drivers/fslibre.py
index 8b3b762..79025f6 100644
--- a/glucometerutils/drivers/fslibre.py
+++ b/glucometerutils/drivers/fslibre.py
@@ -21,6 +21,7 @@ https://protocols.glucometers.tech/abbott/freestyle-libre
"""
import datetime
+import logging
from typing import Dict, Generator, Mapping, Optional, Sequence, Tuple, Type
from glucometerutils import common
@@ -253,6 +254,7 @@ class Device(freestyle.FreeStyleHidDevice):
# Then get the results of explicit scans and blood tests (and other
# events).
for record in self._session.query_multirecord(b"$arresult?"):
+ logging.debug(f"Retrieved arresult: {record!r}")
reading = _parse_arresult(record)
if reading:
yield reading