weewx-gw1000
weewx-gw1000 copied to clipboard
Code error
gw1000.py v0.6.0 line 3460:
offset_dict[channel] = struct.unpack(">h", six.int2byte(data[index + 1:index + 3]))[0] / 10.0
will generate an exception if it is ever encountered as the argument to six.int2byte
must be an integer not a byte string as data[index + 1:index + 3]
would provide. Line 3460 is part of an exception handler so quite possibly has not been called to date.