From: Lars Op den Kamp Date: Wed, 3 Oct 2012 11:57:10 +0000 (+0200) Subject: fixed - some messages from the adapter were marked as response while they weren't X-Git-Tag: upstream/2.2.0~1^2~17^2^2~43 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=9f236526a89d6281101620a1c5a9cc1a6fe1aa03;p=deb_libcec.git fixed - some messages from the adapter were marked as response while they weren't --- diff --git a/src/lib/adapter/Pulse-Eight/USBCECAdapterMessageQueue.cpp b/src/lib/adapter/Pulse-Eight/USBCECAdapterMessageQueue.cpp index de0ff1c..4e03500 100644 --- a/src/lib/adapter/Pulse-Eight/USBCECAdapterMessageQueue.cpp +++ b/src/lib/adapter/Pulse-Eight/USBCECAdapterMessageQueue.cpp @@ -146,10 +146,7 @@ bool CCECAdapterMessageQueueEntry::IsResponse(const CCECAdapterMessage &msg) // response without a msgcode if (msgResponse == MSGCODE_NOTHING) - { - m_queue->m_com->m_callback->GetLib()->AddLog(CEC_LOG_WARNING, "no response code received"); - return true; - } + return false; // commands that only repond with accepted/rejected if (thisMsgCode == MSGCODE_PING || @@ -175,10 +172,7 @@ bool CCECAdapterMessageQueueEntry::IsResponse(const CCECAdapterMessage &msg) return ((msgCode == MSGCODE_COMMAND_ACCEPTED || msgCode == MSGCODE_COMMAND_REJECTED) && (msgResponse == MSGCODE_TRANSMIT_ACK_POLARITY || msgResponse == MSGCODE_TRANSMIT || msgResponse == MSGCODE_TRANSMIT_EOM)) || msgCode == MSGCODE_TIMEOUT_ERROR || - msgCode == MSGCODE_HIGH_ERROR || - msgCode == MSGCODE_LOW_ERROR || msgCode == MSGCODE_RECEIVE_FAILED || - msgCode == MSGCODE_TRANSMIT_FAILED_LINE || msgCode == MSGCODE_TRANSMIT_FAILED_ACK || msgCode == MSGCODE_TRANSMIT_FAILED_TIMEOUT_DATA || msgCode == MSGCODE_TRANSMIT_FAILED_TIMEOUT_LINE ||