diff options
author | vanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524> | 2012-10-11 09:10:37 +0000 |
---|---|---|
committer | vanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524> | 2012-10-11 09:10:37 +0000 |
commit | ab04e71d33bc0d80b2a8f82f43e7bc1ddee1b1a9 (patch) | |
tree | 9c82b3ba9f58f973a6f1a22eb1471fea22fa4761 | |
parent | 4ccfd30544d1da8f3b5a02293f1feca702dde90a (diff) | |
download | edk2-platforms-ab04e71d33bc0d80b2a8f82f43e7bc1ddee1b1a9.tar.xz |
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13823 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r-- | SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/DebugAgent.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/DebugAgent.c b/SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/DebugAgent.c index 04dae34194..7ee4cca43b 100644 --- a/SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/DebugAgent.c +++ b/SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/DebugAgent.c @@ -598,19 +598,15 @@ SendCommandAndWaitForAckOK ( SendPacketWithoutData (Command);
while (TRUE) {
Status = ReceiveAckPacket (&Ack, Timeout, BreakReceived, CheckSumStatus);
- if (Status == RETURN_SUCCESS && Ack == DEBUG_COMMAND_RESEND) {
- //
- // Resend the last command
- //
- break;
- }
- if ((Status == RETURN_SUCCESS && Ack == DEBUG_COMMAND_OK) ||
- Status == RETURN_TIMEOUT) {
+ if (Status == RETURN_SUCCESS && Ack == DEBUG_COMMAND_OK) {
//
// Received Ack OK or timeout
//
return Status;
- }
+ }
+ if (Status == RETURN_TIMEOUT) {
+ break;
+ }
}
}
}
|