Skip to content

Commit

Permalink
Roll back r13823.
Browse files Browse the repository at this point in the history
signed-off-by: Jeff Fan <[email protected]>




git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13825 6f19259b-4bc3-4df7-8a09-765794883524
  • Loading branch information
vanjeff committed Oct 11, 2012
1 parent ab04e71 commit 48da9f0
Showing 1 changed file with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -598,15 +598,19 @@ SendCommandAndWaitForAckOK (
SendPacketWithoutData (Command);
while (TRUE) {
Status = ReceiveAckPacket (&Ack, Timeout, BreakReceived, CheckSumStatus);
if (Status == RETURN_SUCCESS && Ack == DEBUG_COMMAND_OK) {
if (Status == RETURN_SUCCESS && Ack == DEBUG_COMMAND_RESEND) {
//
// Resend the last command
//
break;
}
if ((Status == RETURN_SUCCESS && Ack == DEBUG_COMMAND_OK) ||
Status == RETURN_TIMEOUT) {
//
// Received Ack OK or timeout
//
return Status;
}
if (Status == RETURN_TIMEOUT) {
break;
}
}
}
}
}
Expand Down

0 comments on commit 48da9f0

Please sign in to comment.