From 530afcae98edc3800cecaf27c00314ca29defdca Mon Sep 17 00:00:00 2001 From: Lars Op den Kamp Date: Fri, 2 Dec 2011 11:19:38 +0100 Subject: [PATCH] cec: removed the 10ms extra delay in CAdapterCommunication::SendMessageToAdapter() --- src/lib/AdapterCommunication.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.34.1