完全修复

This commit is contained in:
murmur 2023-03-14 22:04:51 +08:00
parent 05b5d30a92
commit f9ae012dbf

View File

@ -105,7 +105,11 @@ def tt_hh(addr, data):
update_pairs(addr, ccid)
# 组帧再返回
msg = bytearray(data[:])
msg[12:-1] = val = "%04x" % int(time.time())
val = "%04x" % int(time.time())
tmp=[]
for i in range(0,len(val),2):
tmp.append(int(val[i:i+2],16))
msg[12:-1] = tmp
# 计算校验和
crc = 0
for i in msg[:-1]: