Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 13, 2025
1 parent 82f4533 commit 4cebfba
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/surface/transceiver/transceiver/serial_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,16 +130,15 @@ def message_parser(self, packet: str) -> FloatData:

if len(packet_sections) != PACKET_SECTIONS:
raise ValueError(
f'Packet expected {PACKET_SECTIONS} sections, '
f'found {len(packet_sections)} sections'
f'Packet expected {PACKET_SECTIONS} sections, found {len(packet_sections)} sections'
)

header = packet_sections[1].split(COMMA_SEPARATOR)
data = packet_sections[2]

if len(header) != HEADER_LENGTH:
raise ValueError(
f'Packet header length of {HEADER_LENGTH} expected ' f'found {len(header)} instead'
f'Packet header length of {HEADER_LENGTH} expected found {len(header)} instead'
)

msg.team_number = int(header[0])
Expand Down

0 comments on commit 4cebfba

Please sign in to comment.