repositories
/
deb_libcec.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
61742d4
)
cec: removed the 10ms extra delay in CAdapterCommunication::SendMessageToAdapter()
author
Lars Op den Kamp
<lars@opdenkamp.eu>
Fri, 2 Dec 2011 10:19:38 +0000
(11:19 +0100)
committer
Lars Op den Kamp
<lars@opdenkamp.eu>
Fri, 2 Dec 2011 10:19:38 +0000
(11:19 +0100)
src/lib/AdapterCommunication.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/lib/AdapterCommunication.cpp
b/src/lib/AdapterCommunication.cpp
index 440226b3e84eb9f12aa357cbf68f472ff4549dba..e28be13b2ea42b6af26206582fa940b5300b68fd 100644
(file)
--- 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");
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();
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
{
}
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;
}
msg.clear();
bGotStart = true;
}