From 59dfa88299c8473c4a4391bb256368047c990740 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= Date: Tue, 9 Feb 2016 01:03:39 +0000 Subject: Update documentation, reference the new glucometer-protocols repository. Also update copyright year. --- glucometerutils/drivers/freestyle_optium.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'glucometerutils/drivers') diff --git a/glucometerutils/drivers/freestyle_optium.py b/glucometerutils/drivers/freestyle_optium.py index d40a9a1..7f4e020 100644 --- a/glucometerutils/drivers/freestyle_optium.py +++ b/glucometerutils/drivers/freestyle_optium.py @@ -1,5 +1,10 @@ # -*- coding: utf-8 -*- -"""Driver for FreeStyle Optium devices""" +"""Driver for FreeStyle Optium devices. + +Further information on the device protocol can be found at + +https://github.com/Flameeyes/glucometer-protocols/blob/master/abbott/freestyle-optium.md +""" __author__ = 'Diego Elio Pettenò' __email__ = 'flameeyes@flameeyes.eu' @@ -94,6 +99,8 @@ class Device(object): self.serial_.flush() response = self.serial_.readlines() + print("%r" % response) + # We always want to decode the output, and remove stray \r\n. Any failure in # decoding means the output is invalid anyway. decoded_response = [line.decode('ascii').rstrip('\r\n') -- cgit v1.2.3