From b5117104dff139ffb5dbc6fe3ec995a4ed554f67 Mon Sep 17 00:00:00 2001 From: Lars Op den Kamp Date: Sun, 26 Feb 2012 23:38:59 +0100 Subject: [PATCH] cec: fixed return value of CUSBCECAdapterCommunication::ParseMessage(). fixes messages not being parsed in certain occasions --- src/lib/adapter/USBCECAdapterCommunication.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib/adapter/USBCECAdapterCommunication.cpp b/src/lib/adapter/USBCECAdapterCommunication.cpp index c12ee54..c858d87 100644 --- a/src/lib/adapter/USBCECAdapterCommunication.cpp +++ b/src/lib/adapter/USBCECAdapterCommunication.cpp @@ -431,7 +431,6 @@ bool CUSBCECAdapterCommunication::ParseMessage(const CCECAdapterMessage &msg) m_currentframe.PushBack(msg[1]); m_currentframe.eom = msg.IsEOM(); } - bEom = msg.IsEOM(); } break; default: @@ -439,7 +438,7 @@ bool CUSBCECAdapterCommunication::ParseMessage(const CCECAdapterMessage &msg) } CLibCEC::AddLog(bIsError ? CEC_LOG_WARNING : CEC_LOG_DEBUG, msg.ToString()); - return bEom; + return bEom = msg.IsEOM();; } uint16_t CUSBCECAdapterCommunication::GetFirmwareVersion(void) -- 2.34.1