diff options
author | Diego Elio Pettenò <flameeyes@flameeyes.eu> | 2019-01-29 01:01:14 +0100 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@flameeyes.eu> | 2019-01-29 01:01:14 +0100 |
commit | b6995f276320e6c9e6d146f265138debdcfda0a7 (patch) | |
tree | 08d70b50634cebdfdca2a2c4cbfdae752e07dd43 | |
parent | exceptions: avoid using kwargs for message, as it's not correct. (diff) | |
download | glucometerutils-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 |
Diffstat (limited to '')
-rw-r--r-- | glucometerutils/support/hiddevice.py | 6 |
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 |