|
@@ -138,7 +138,7 @@ class ShellmattaTransport():
|
|
self.sequence_counter_s2h,
|
|
self.sequence_counter_s2h,
|
|
data[:self.Packet.MAX_PAYLOAD_LENGTH],
|
|
data[:self.Packet.MAX_PAYLOAD_LENGTH],
|
|
crc_fct=self.custom_crc)
|
|
crc_fct=self.custom_crc)
|
|
- self.sequence_counter_h2s += 1
|
|
|
|
|
|
+ self.sequence_counter_h2s = (self.sequence_counter_h2s + 1) % 256
|
|
packet.secure()
|
|
packet.secure()
|
|
self.com_obj.write(bytes(packet))
|
|
self.com_obj.write(bytes(packet))
|
|
data = data[self.Packet.MAX_PAYLOAD_LENGTH:]
|
|
data = data[self.Packet.MAX_PAYLOAD_LENGTH:]
|