CCECAdapterMessage &CCECAdapterMessage::operator =(const CCECAdapterMessage &msg)
{
packet = msg.packet;
+ state = msg.state;
return *this;
}
if (byte >= MSGESC && byte != MSGSTART)
{
push_back(MSGESC);
- push_back(byte - ESCOFFSET);
+ push_back((uint8_t) (byte - ESCOFFSET));
}
else
- push_back(byte);
+ push_back((uint8_t) byte);
}
CAdapterCommunication::CAdapterCommunication(CLibCEC *controller) :
uint8_t buf = 0;
if (!m_inBuffer.Pop(buf))
{
- if (!m_rcvCondition.Wait(&m_mutex, iTarget - iNow))
+ if (!m_rcvCondition.Wait(&m_mutex, (uint32_t) (iTarget - iNow)))
return false;
}