Corrected format data
This commit is contained in:
parent
2887b7acf0
commit
006fc2c369
|
@ -46,7 +46,7 @@ def query_r():
|
|||
flat_packet_data = dataHelper.flatten(packet_data)
|
||||
|
||||
packet = struct.pack(b"<H" + b"c%dsc%ds" * flat_packet_data[0] # using len_rules
|
||||
% [y for x in rules.items() for y in x], # array of only rules entries
|
||||
% [len(y) for x in rules.items() for y in x], # array of only rules entries
|
||||
*flat_packet_data)
|
||||
|
||||
return packet
|
||||
|
|
0
helpers/__init__.py
Normal file
0
helpers/__init__.py
Normal file
Reference in New Issue
Block a user