mirror of https://github.com/acidanthera/audk.git
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13823 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
4ccfd30544
commit
ab04e71d33
|
@ -598,19 +598,15 @@ SendCommandAndWaitForAckOK (
|
||||||
SendPacketWithoutData (Command);
|
SendPacketWithoutData (Command);
|
||||||
while (TRUE) {
|
while (TRUE) {
|
||||||
Status = ReceiveAckPacket (&Ack, Timeout, BreakReceived, CheckSumStatus);
|
Status = ReceiveAckPacket (&Ack, Timeout, BreakReceived, CheckSumStatus);
|
||||||
if (Status == RETURN_SUCCESS && Ack == DEBUG_COMMAND_RESEND) {
|
if (Status == RETURN_SUCCESS && Ack == DEBUG_COMMAND_OK) {
|
||||||
//
|
|
||||||
// Resend the last command
|
|
||||||
//
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
if ((Status == RETURN_SUCCESS && Ack == DEBUG_COMMAND_OK) ||
|
|
||||||
Status == RETURN_TIMEOUT) {
|
|
||||||
//
|
//
|
||||||
// Received Ack OK or timeout
|
// Received Ack OK or timeout
|
||||||
//
|
//
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
if (Status == RETURN_TIMEOUT) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue