From 05b5d30a922afcfd6cecd528800bde9b726389ce Mon Sep 17 00:00:00 2001 From: murmur Date: Tue, 14 Mar 2023 21:21:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=80=E5=A4=84=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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