cec: fixed return value of CUSBCECAdapterCommunication::ParseMessage(). fixes message...
authorLars Op den Kamp <lars@opdenkamp.eu>
Sun, 26 Feb 2012 22:38:59 +0000 (23:38 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Sun, 26 Feb 2012 22:38:59 +0000 (23:38 +0100)
src/lib/adapter/USBCECAdapterCommunication.cpp

index c12ee546b1a3e1a11e8e75efefeb0f657b469ed7..c858d87132ec1a2601f92235733466a0651b4ac2 100644 (file)
@@ -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)