else
{
m_controller->AddLog(CEC_LOG_DEBUG, "command sent");
- CCondition::Sleep((uint32_t) msg->size() * (uint32_t)24 /*data*/ + (uint32_t)5 /*start bit (4.5 ms)*/);
+ CCondition::Sleep((uint32_t) msg->size() * 24 /*data*/ + 5 /*start bit (4.5 ms)*/ + 10);
msg->state = ADAPTER_MESSAGE_STATE_SENT;
}
msg->condition.Signal();
void *CCECProcessor::Process(void)
{
+ cec_command command;
+ CCECAdapterMessage msg;
+
+ SetAckMask(0x1 << (uint8_t)m_iLogicalAddress);
+
{
CLockObject lock(&m_mutex);
m_controller->AddLog(CEC_LOG_DEBUG, "processor thread started");
m_startCondition.Signal();
}
- cec_command command;
- CCECAdapterMessage msg;
-
- SetAckMask(0x1 << (uint8_t)m_iLogicalAddress);
-
while (!IsStopped())
{
bool bParseFrame(false);