catch any kind of timeout in the wmr300 driver

This commit is contained in:
Matthew Wall
2018-01-05 12:25:21 -05:00
parent 03a736af98
commit e73efcc78e

View File

@@ -786,7 +786,7 @@ import weewx.wxformulas
from weeutil.weeutil import timestamp_to_string
DRIVER_NAME = 'WMR300'
DRIVER_VERSION = '0.19rc2'
DRIVER_VERSION = '0.19rc3'
DEBUG_COMM = 0
DEBUG_PACKET = 0
@@ -849,6 +849,7 @@ def is_noerr(e):
# strings for the timeout error
USB_TIMEOUT_MESSAGES = [
'Connection timed out',
'Operation timed out']
# detect usb timeout error (errno 110)