diff options
author | Diego Elio Pettenò <flameeyes@flameeyes.com> | 2019-09-08 21:12:13 +0200 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@flameeyes.com> | 2019-09-08 21:12:13 +0200 |
commit | c99f6e6c32914a947c426d3e17e225e8c8564195 (patch) | |
tree | 1c93622b3529a829fe98ad5a8d7be1c93b192760 | |
parent | Add a simple-ish script to use access a FreeStyle HID-compatible commands. (diff) | |
download | glucometerutils-c99f6e6c32914a947c426d3e17e225e8c8564195.tar glucometerutils-c99f6e6c32914a947c426d3e17e225e8c8564195.tar.gz glucometerutils-c99f6e6c32914a947c426d3e17e225e8c8564195.tar.bz2 glucometerutils-c99f6e6c32914a947c426d3e17e225e8c8564195.tar.lz glucometerutils-c99f6e6c32914a947c426d3e17e225e8c8564195.tar.xz glucometerutils-c99f6e6c32914a947c426d3e17e225e8c8564195.tar.zst glucometerutils-c99f6e6c32914a947c426d3e17e225e8c8564195.zip |
-rw-r--r-- | glucometerutils/support/freestyle.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/glucometerutils/support/freestyle.py b/glucometerutils/support/freestyle.py index 3c337f6..5b441ff 100644 --- a/glucometerutils/support/freestyle.py +++ b/glucometerutils/support/freestyle.py @@ -275,6 +275,10 @@ class FreeStyleHidDevice(hiddevice.HidDevice): in the record file. """ message = self._send_text_command(command) + logging.debug('Received multirecord message:\n%s', message) + if message == "Log Empty\r\n": + return () + match = _MULTIRECORDS_FORMAT.search(message) if not match: raise exceptions.InvalidResponse(message) |