From: Lars Op den Kamp Date: Fri, 2 Dec 2011 10:19:38 +0000 (+0100) Subject: cec: removed the 10ms extra delay in CAdapterCommunication::SendMessageToAdapter() X-Git-Tag: upstream/2.2.0~1^2~44^2~67 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=530afcae98edc3800cecaf27c00314ca29defdca;p=deb_libcec.git cec: removed the 10ms extra delay in CAdapterCommunication::SendMessageToAdapter() --- diff --git a/src/lib/AdapterCommunication.cpp b/src/lib/AdapterCommunication.cpp index 440226b..e28be13 100644 --- a/src/lib/AdapterCommunication.cpp +++ b/src/lib/AdapterCommunication.cpp @@ -373,7 +373,7 @@ void CAdapterCommunication::SendMessageToAdapter(CCECAdapterMessage *msg) else { m_controller->AddLog(CEC_LOG_DEBUG, "command sent"); - CCondition::Sleep((uint32_t) msg->size() * 24 /*data*/ + 5 /*start bit (4.5 ms)*/ + 10); + CCondition::Sleep((uint32_t) msg->size() * 24 /*data*/ + 5 /*start bit (4.5 ms)*/); msg->state = ADAPTER_MESSAGE_STATE_SENT; } msg->condition.Signal(); @@ -414,7 +414,7 @@ bool CAdapterCommunication::Read(CCECAdapterMessage &msg, uint32_t iTimeout) } else if (buf == MSGSTART) //we found a msgstart before msgend, this is not right, remove { - m_controller->AddLog(CEC_LOG_ERROR, "received MSGSTART before MSGEND"); + m_controller->AddLog(CEC_LOG_WARNING, "received MSGSTART before MSGEND, removing previous buffer contents"); msg.clear(); bGotStart = true; }