Fixed an issue introduced with my last fix where the command and sequence ID extraction were moved causing them to be reversed.

llvm-svn: 186020
This commit is contained in:
Greg Clayton 2013-07-10 17:58:19 +00:00
parent 8ec9f5f60e
commit a063c810a0
1 changed files with 1 additions and 1 deletions

View File

@ -129,10 +129,10 @@ CommunicationKDP::SendRequestAndGetReply (const CommandType command,
if (WaitForPacketWithTimeoutMicroSecondsNoLock (reply_packet, GetPacketTimeoutInMicroSeconds ()))
{
offset = 0;
const uint8_t reply_command = reply_packet.GetU8 (&offset);
const uint8_t reply_sequence_id = reply_packet.GetU8 (&offset);
if (request_sequence_id == reply_sequence_id)
{
const uint8_t reply_command = reply_packet.GetU8 (&offset);
// The sequent ID was correct, now verify we got the response we were looking for
if ((reply_command & eCommandTypeMask) == command)
{