mirror of
https://github.com/weewx/weewx.git
synced 2026-05-18 23:05:30 -04:00
Fixed issue #556
This commit is contained in:
@@ -140,7 +140,7 @@ class StationData(object):
|
||||
def validate_string(buf):
|
||||
if len(buf) != PACKET_SIZE:
|
||||
raise weewx.WeeWxIOError("Unexpected buffer length %d" % len(buf))
|
||||
if buf[0:2] != '!!':
|
||||
if buf[0:2] != b'!!':
|
||||
raise weewx.WeeWxIOError("Unexpected header bytes '%s'" % buf[0:2])
|
||||
return buf
|
||||
|
||||
|
||||
Reference in New Issue
Block a user