weewx-gw1000 icon indicating copy to clipboard operation
weewx-gw1000 copied to clipboard

Code error

Open gjr80 opened this issue 1 year ago • 0 comments

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.

gjr80 avatar Feb 08 '24 07:02 gjr80