summaryrefslogtreecommitdiffstats
path: root/glucometerutils/support/hiddevice.py
diff options
context:
space:
mode:
Diffstat (limited to 'glucometerutils/support/hiddevice.py')
-rw-r--r--glucometerutils/support/hiddevice.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/glucometerutils/support/hiddevice.py b/glucometerutils/support/hiddevice.py
index 86203ba..0ffa028 100644
--- a/glucometerutils/support/hiddevice.py
+++ b/glucometerutils/support/hiddevice.py
@@ -42,7 +42,7 @@ class HidDevice(object):
TIMEOUT_MS = None
- def __init__(self, device):
+ def __init__(self, device, with_ketone=False):
if None in (self.USB_VENDOR_ID, self.USB_PRODUCT_ID) and not device:
raise exceptions.CommandLineError(
'--device parameter is required, should point to a /dev/hidraw '
@@ -54,6 +54,8 @@ class HidDevice(object):
raise exceptions.ConnectionFailed(
message='Path %s does not exist.' % device)
+ self.with_ketone = with_ketone
+
# If the user passed a device, try opening it.
if device:
self.handle_ = open(device, 'w+b')