From: Lars Op den Kamp Date: Mon, 23 Apr 2012 14:42:50 +0000 (+0200) Subject: cec: fixed - number of retries for polls X-Git-Tag: upstream/2.2.0~1^2~29^2^2~60 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=6c0ccaa58547cabfe9ea0bb34370ca799a7c6ee6;p=deb_libcec.git cec: fixed - number of retries for polls --- diff --git a/src/lib/implementations/CECCommandHandler.cpp b/src/lib/implementations/CECCommandHandler.cpp index 7e4b547..c303871 100644 --- a/src/lib/implementations/CECCommandHandler.cpp +++ b/src/lib/implementations/CECCommandHandler.cpp @@ -1015,7 +1015,7 @@ bool CCECCommandHandler::Transmit(cec_command &command, bool bExpectResponse /* } { - uint8_t iTries(0), iMaxTries(command.opcode == CEC_OPCODE_NONE ? 1 : m_iTransmitRetries + 1); + uint8_t iTries(0), iMaxTries(!command.opcode_set ? 1 : m_iTransmitRetries + 1); while (!bReturn && ++iTries <= iMaxTries) { if ((bReturn = m_processor->Transmit(command)) == true)