diff --git a/server.py b/server.py index bce130d..9f79070 100755 --- a/server.py +++ b/server.py @@ -104,7 +104,7 @@ def tt_hh(addr, data): ccid = data[7 + offs : 11 + offs] update_pairs(addr, ccid) # 组帧再返回 - msg = data[:] + msg = bytearray(data[:]) msg[12:-1] = val = "%04x" % int(time.time()) # 计算校验和 crc = 0