Skip to content

Commit

Permalink
Fixed magic number
Browse files Browse the repository at this point in the history
  • Loading branch information
gabryelreyes committed Nov 21, 2023
1 parent 1fb8b4c commit 4c04e61
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/SerialMuxProt.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ class SerialMuxProtConstants:
CONTROL_CHANNEL_NUMBER = 0 # Number of Control Channel.
CONTROL_CHANNEL_PAYLOAD_LENGTH = CHANNEL_NAME_MAX_LEN + \
CONTROL_CHANNEL_PAYLOAD_DATA_LENGTH + \
CONTROL_CHANNEL_CMD_BYTE_LENGTH + 1 # DLC of Heartbeat Command.
CONTROL_CHANNEL_CMD_BYTE_LENGTH + \
CHANNEL_LEN # DLC of Heartbeat Command.
# Index of the Command Byte of the Control Channel
CONTROL_CHANNEL_COMMAND_INDEX = 0
# Index of the start of the payload of the Control Channel
Expand Down

0 comments on commit 4c04e61

Please sign in to comment.