Skip to content

Commit

Permalink
try 8.
Browse files Browse the repository at this point in the history
  • Loading branch information
janiversen committed Mar 5, 2024
1 parent 4670ace commit a6d9336
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pymodbus/framer/tls_framer.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,7 @@ def buildPacket(self, message):
packet = struct.pack(TLS_FRAME_HEADER, message.function_code)
packet += data

if message.function_code:
_data_new = message.function_code.to_bytes()
else:
_data_new = b'\x00'
_data_new = message.function_code.to_bytes(1,'big') + data
# _data_new = message.function_code.to_bytes() + data
# _packet_new = self.message_encoder.encode(data_new, message.slave_id, message.transaction_id)
# assert packet == packet_new, "TLS FRAMER BuildPacket failed!"
Expand Down

0 comments on commit a6d9336

Please sign in to comment.