summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@flameeyes.eu>2019-01-29 01:01:14 +0100
committerDiego Elio Pettenò <flameeyes@flameeyes.eu>2019-01-29 01:01:14 +0100
commitb6995f276320e6c9e6d146f265138debdcfda0a7 (patch)
tree08d70b50634cebdfdca2a2c4cbfdae752e07dd43
parentexceptions: avoid using kwargs for message, as it's not correct. (diff)
downloadglucometerutils-b6995f276320e6c9e6d146f265138debdcfda0a7.tar
glucometerutils-b6995f276320e6c9e6d146f265138debdcfda0a7.tar.gz
glucometerutils-b6995f276320e6c9e6d146f265138debdcfda0a7.tar.bz2
glucometerutils-b6995f276320e6c9e6d146f265138debdcfda0a7.tar.lz
glucometerutils-b6995f276320e6c9e6d146f265138debdcfda0a7.tar.xz
glucometerutils-b6995f276320e6c9e6d146f265138debdcfda0a7.tar.zst
glucometerutils-b6995f276320e6c9e6d146f265138debdcfda0a7.zip
-rw-r--r--glucometerutils/support/hiddevice.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/glucometerutils/support/hiddevice.py b/glucometerutils/support/hiddevice.py
index 12debf8..b746514 100644
--- a/glucometerutils/support/hiddevice.py
+++ b/glucometerutils/support/hiddevice.py
@@ -38,14 +38,14 @@ class HidDevice:
Optional parameters available:
- TIMEOUT_MS: (int, default: None) the read timeout in milliseconds, used
- for hidapi reads only. If -1, hidapi will be provided no timeout.
+ TIMEOUT_MS: (int, default: 0) the read timeout in milliseconds, used
+ for hidapi reads only. If < 1, hidapi will be provided no timeout.
"""
USB_VENDOR_ID = None # type: int
USB_PRODUCT_ID = None # type: int
- TIMEOUT_MS = None # type: Optional[int]
+ TIMEOUT_MS = 0 # type: int
def __init__(self, device):
# type: (Optional[Text]) -> None