Skip to content

Commit

Permalink
Merge pull request #377 from SpiNNakerManchester/allow_noreply_to_count
Browse files Browse the repository at this point in the history
Allow no-reply to count message
  • Loading branch information
rowleya authored Oct 30, 2023
2 parents ebbcfc3 + 387cd8c commit ed7e091
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spinnman/messages/scp/impl/count_state_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ def __init__(self):
@overrides(AbstractSCPResponse.read_data_bytestring)
def read_data_bytestring(self, data: bytes, offset: int):
result = self.scp_response_header.result
if result != SCPResult.RC_OK:
# We can accept a no-reply response here; that could just mean
# that the count wasn't complete (but might be enough anyway)
if result != SCPResult.RC_OK and result != SCPResult.RC_P2P_NOREPLY:
raise SpinnmanUnexpectedResponseCodeException(
"CountState", "CMD_COUNT", result.name)
self._count = _ONE_WORD.unpack_from(data, offset)[0]
Expand Down

0 comments on commit ed7e091

Please sign in to comment.