remove extraneous slice

This commit is contained in:
ryleu
2026-04-08 00:09:04 -05:00
parent 010d2da0b6
commit 30bb32a66b

View File

@@ -376,7 +376,6 @@ class CANConnector(Connector):
data_type = 2 data_type = 2
if data_len == 3: if data_len == 3:
msg.data.append(0) msg.data.append(0)
msg.data = msg.data[:4]
data = struct.pack(">hhhh", *[int(x) for x in msg.data]) data = struct.pack(">hhhh", *[int(x) for x in msg.data])
case _: case _:
self.logger.error( self.logger.error(