From b09b55bee06894a183ba82419f5c7bac2f9c5a84 Mon Sep 17 00:00:00 2001 From: ryleu <69326171+ryleu@users.noreply.github.com> Date: Tue, 7 Apr 2026 22:19:55 -0500 Subject: [PATCH] fix bug because apparently python has arrays --- src/anchor_pkg/anchor_pkg/connector.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/anchor_pkg/anchor_pkg/connector.py b/src/anchor_pkg/anchor_pkg/connector.py index 7241884..14a9065 100644 --- a/src/anchor_pkg/anchor_pkg/connector.py +++ b/src/anchor_pkg/anchor_pkg/connector.py @@ -375,7 +375,8 @@ class CANConnector(Connector): case 3 | 4: # 3 gets padded and is treated as 4 data_type = 2 # pad till we have 4 otherwise struct.pack will freak out - msg.data = (msg.data + [0])[:4] + msg.data.append(0) + msg.data = msg.data[:4] data = struct.pack(">hhhh", *[int(x) for x in msg.data]) case _: self.logger.error(