Skip to content

Commit

Permalink
only 1 bmp_connection
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Aug 1, 2023
1 parent 5cf774c commit 194e09d
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions spinnman/extended/extended_transceiver.py
Original file line number Diff line number Diff line change
Expand Up @@ -785,12 +785,11 @@ def number_of_boards_located(self):
"""
warn_once(logger, "The number_of_boards_located method is deprecated "
"and likely to be removed.")
boards = 0
for bmp_connection in self._bmp_connections:
boards += len(bmp_connection.boards)

# if no BMPs are available, then there's still at least one board
return max(1, boards)
if self._bmp_connection is not None:
return max(1, len(self._bmp_connection.boards))
else:
# if no BMPs are available, then there's still at least one board
return 1

def get_heap(self, x, y, heap=SystemVariableDefinition.sdram_heap_address):
"""
Expand Down

0 comments on commit 194e09d

Please sign in to comment.