完全修复
This commit is contained in:
parent
05b5d30a92
commit
f9ae012dbf
@ -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]:
|
||||
|
Loading…
Reference in New Issue
Block a user