Skip to content

Commit 3a45e3e

Browse files
committed
Correctly log port mapping with multiple motor outputs
1 parent 0f44412 commit 3a45e3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sbot/internal/board_manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -571,8 +571,8 @@ def log_connected_boards(self, show_output_map: bool = False) -> None:
571571
logger.info(f"Connected {board_name}, serial: {asset_tag}")
572572
else:
573573
output_map = {
574-
idx: (port.identity.asset_tag, idx % num_outputs)
575-
for port, idx in board_outputs
574+
idx: (port.identity.asset_tag, port_idx)
575+
for idx, (port, port_idx) in enumerate(board_outputs)
576576
}
577577
if not output_map:
578578
# No outputs found

0 commit comments

Comments
 (0)