X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2FAdapterCommunication.cpp;h=93648742825ce3f089013615d119afae827bf114;hb=4d6f5ac7a660c0b450bff491a16f8bc23944f0ea;hp=2bdbb04deded358fa721a2305cb254479a02f8fa;hpb=a0878ee3c123121dddc0103ba6b7d320b5416151;p=deb_libcec.git diff --git a/src/lib/AdapterCommunication.cpp b/src/lib/AdapterCommunication.cpp index 2bdbb04..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; }