forked from OSchip/llvm-project
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:
parent
8ec9f5f60e
commit
a063c810a0
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue