summaryrefslogtreecommitdiffstats
path: root/glucometer.py
diff options
context:
space:
mode:
authorjimsiff <jim@sifferle.net>2013-12-14 01:52:20 +0100
committerjimsiff <jim@sifferle.net>2013-12-14 01:52:20 +0100
commit570585d136a93be9e7e5a21604f0150cf1e111cd (patch)
tree7d84982a8e1d130b1f1877f2a1a31339f210903a /glucometer.py
parentUpdate documentation for the dump format and options. (diff)
downloadglucometerutils-570585d136a93be9e7e5a21604f0150cf1e111cd.tar
glucometerutils-570585d136a93be9e7e5a21604f0150cf1e111cd.tar.gz
glucometerutils-570585d136a93be9e7e5a21604f0150cf1e111cd.tar.bz2
glucometerutils-570585d136a93be9e7e5a21604f0150cf1e111cd.tar.lz
glucometerutils-570585d136a93be9e7e5a21604f0150cf1e111cd.tar.xz
glucometerutils-570585d136a93be9e7e5a21604f0150cf1e111cd.tar.zst
glucometerutils-570585d136a93be9e7e5a21604f0150cf1e111cd.zip
Diffstat (limited to '')
-rwxr-xr-xglucometer.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/glucometer.py b/glucometer.py
index 155cd93..1131042 100755
--- a/glucometer.py
+++ b/glucometer.py
@@ -82,8 +82,13 @@ def main():
else:
print(device.get_datetime())
elif args.action == 'zero':
- device.zero_log()
- print('Device data log zeroed.')
+ confirm = input('Delete the device data log? (y/N) ')
+ if confirm.lower() in ['y', 'ye', 'yes']:
+ device.zero_log()
+ print('\nDevice data log zeroed.')
+ else:
+ print('\nDevice data log not zeroed.')
+ return 1
else:
return 1
except exceptions.Error as err: