From: Lars Op den Kamp Date: Tue, 4 Dec 2012 01:56:48 +0000 (+0100) Subject: also try polls at least twice when it failed X-Git-Tag: upstream/2.2.0~1^2~9^2~1^2~2 X-Git-Url: https://git.piment-noir.org/?p=deb_libcec.git;a=commitdiff_plain;h=d0e533d0f9c090008ed77f841ff6bfa0c5a3c7e5 also try polls at least twice when it failed --- diff --git a/src/lib/implementations/CECCommandHandler.cpp b/src/lib/implementations/CECCommandHandler.cpp index 1274dd2..174275c 100644 --- a/src/lib/implementations/CECCommandHandler.cpp +++ b/src/lib/implementations/CECCommandHandler.cpp @@ -1157,7 +1157,7 @@ bool CCECCommandHandler::Transmit(cec_command &command, bool bSuppressWait, bool } { - uint8_t iTries(0), iMaxTries(!command.opcode_set ? 1 : m_iTransmitRetries + 1); + uint8_t iTries(0), iMaxTries(m_iTransmitRetries + 1); while (!bReturn && ++iTries <= iMaxTries) { if ((bReturn = m_processor->Transmit(command, bIsReply)) == true)