X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2FAdapterCommunication.cpp;h=93648742825ce3f089013615d119afae827bf114;hb=863c4e5740face8308279a49a3fcc62f25c716cb;hp=5541bf56a5381febe2a64264b897099fff2d1cc6;hpb=ae693aaa8545b853946bf490dd0444c5862bafb9;p=deb_libcec.git diff --git a/src/lib/AdapterCommunication.cpp b/src/lib/AdapterCommunication.cpp index 5541bf5..9364874 100644 --- a/src/lib/AdapterCommunication.cpp +++ b/src/lib/AdapterCommunication.cpp @@ -43,7 +43,6 @@ using namespace CEC; CCECAdapterMessage::CCECAdapterMessage(const cec_command &command) { clear(); - maxTries = command.retries + 1; //set ack polarity to high when transmitting to the broadcast address //set ack polarity low when transmitting to any other address @@ -303,6 +302,9 @@ bool CAdapterCommunication::Open(const char *strPort, uint16_t iBaudRate /* = 38 m_processor->AddLog(CEC_LOG_DEBUG, "could not create a communication thread"); } + //TODO implement the timeout. use the variable for now to silence the compiler warning + iTimeoutMs = 0; + return false; } @@ -328,6 +330,10 @@ void *CAdapterCommunication::Process(void) WriteNextCommand(); } + CCECAdapterMessage *msg; + if (m_outBuffer.Pop(msg)) + msg->condition.Broadcast(); + return NULL; }