summaryrefslogtreecommitdiffstats
path: root/glucometer.py
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@flameeyes.eu>2013-09-29 23:17:22 +0200
committerDiego Elio Pettenò <flameeyes@flameeyes.eu>2013-09-29 23:17:22 +0200
commit3f48beabb58be75147197ee55f37673808d4c176 (patch)
tree6e3c9ba0e182c26188c1102b98454b9b0110e466 /glucometer.py
parentFix style for tests. (diff)
downloadglucometerutils-3f48beabb58be75147197ee55f37673808d4c176.tar
glucometerutils-3f48beabb58be75147197ee55f37673808d4c176.tar.gz
glucometerutils-3f48beabb58be75147197ee55f37673808d4c176.tar.bz2
glucometerutils-3f48beabb58be75147197ee55f37673808d4c176.tar.lz
glucometerutils-3f48beabb58be75147197ee55f37673808d4c176.tar.xz
glucometerutils-3f48beabb58be75147197ee55f37673808d4c176.tar.zst
glucometerutils-3f48beabb58be75147197ee55f37673808d4c176.zip
Diffstat (limited to '')
-rwxr-xr-xglucometer.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/glucometer.py b/glucometer.py
index c2504f2..facd88b 100755
--- a/glucometer.py
+++ b/glucometer.py
@@ -45,8 +45,8 @@ def main():
device = driver.Device(args.device)
if args.action == 'dump':
- for reading in device.get_readings(args.unit):
- print('%s,%f' % reading)
+ for reading in device.get_readings():
+ print('%s,%f' % (reading.timestamp, reading.get_value_as(args.unit)))
elif args.action == 'datetime':
if args.set == 'now':
print(device.set_datetime())