From e00d82b3c767952ce362008b8497f43bbd5b5edc Mon Sep 17 00:00:00 2001 From: Gabryel Reyes Date: Thu, 11 Jul 2024 09:50:14 +0200 Subject: [PATCH] Fixed command channel payload index --- python/SerialMuxProt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/SerialMuxProt.py b/python/SerialMuxProt.py index 60ae406..212c46c 100644 --- a/python/SerialMuxProt.py +++ b/python/SerialMuxProt.py @@ -572,10 +572,10 @@ def __cmd_scrb(self, payload: bytearray) -> None: # Parse name channel_name = str(payload[5:], "ascii").strip('\x00') - response[1] = self.get_tx_channel_number(channel_name) + response[5] = self.get_tx_channel_number(channel_name) # Name is always sent back. - response[2:] = bytearray(channel_name, 'ascii') + response[6:] = bytearray(channel_name, 'ascii') # Pad array if necessary response = response.ljust(