Skip to content

Commit

Permalink
Fixed command channel payload index
Browse files Browse the repository at this point in the history
  • Loading branch information
gabryelreyes committed Jul 11, 2024
1 parent 6122004 commit e00d82b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/SerialMuxProt.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit e00d82b

Please sign in to comment.