From 145ff7e5684a7562cda599091e420e2070419c0f Mon Sep 17 00:00:00 2001 From: Cervenka Dusan Date: Tue, 24 Oct 2023 15:49:09 +0200 Subject: [PATCH] Fix crcHeader for python Signed-off-by: Cervenka Dusan --- erpc_python/erpc/transport.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/erpc_python/erpc/transport.py b/erpc_python/erpc/transport.py index 2f322fd8..00df5908 100644 --- a/erpc_python/erpc/transport.py +++ b/erpc_python/erpc/transport.py @@ -72,7 +72,8 @@ def send(self, message): crcBody = self._Crc16.computeCRC16(message) messageLength = len(message) - crcHeader = self._Crc16.computeCRC16(messageLength) + self._Crc16.computeCRC16(crcBody) + crcHeader = self._Crc16.computeCRC16(bytearray(struct.pack('