Skip to content

Commit

Permalink
Added diagnostic messages for broadcast read
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Kazanzides committed Apr 23, 2024
1 parent 1ba09a0 commit e28e473
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/code/BasePort.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -929,6 +929,12 @@ bool BasePort::ReadAllBoardsBroadcast(void)
if ((curPtr[0] == 0) || (curPtr[2] == 0)) {
outStr << "BasePort::ReadAllBoardsBroadcast: invalid block after reading "
<< bdCnt << " boards" << std::endl;
outStr << "Failed to read from board(s) ";
for (size_t i = 0; i < BoardIO::MAX_BOARDS; i++) {
if (bcReadInfo.boardInfo[i].inUse && !bcReadInfo.boardInfo[i].updated)
outStr << i << " ";
}
outStr << std::endl;
allOK = false;
break;
}
Expand Down
4 changes: 4 additions & 0 deletions lib/code/EthBasePort.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -929,6 +929,10 @@ bool EthBasePort::ReceiveBroadcastReadResponse(quadlet_t *rdata, unsigned int nb
HubBoard = newHubBoard;
}
}
else {
outStr << "ReceiveBroadcastReadResponse failed -- reading from board" << std::endl;
ret = BasePort::ReceiveBroadcastReadResponse(rdata, nbytes);
}
}
return ret;
}
Expand Down

0 comments on commit e28e473

Please sign in to comment.