From: Lars Op den Kamp Date: Wed, 28 Dec 2011 02:07:21 +0000 (+0100) Subject: cec: fixed typo in CCECCommandHandler::Transmit() X-Git-Tag: upstream/2.2.0~1^2~43^2~6 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=861832f6f9ebef7c950fe6ce79e3f8739645a6c8;p=deb_libcec.git cec: fixed typo in CCECCommandHandler::Transmit() --- diff --git a/src/lib/implementations/CECCommandHandler.cpp b/src/lib/implementations/CECCommandHandler.cpp index 3c8738f..0fac17f 100644 --- a/src/lib/implementations/CECCommandHandler.cpp +++ b/src/lib/implementations/CECCommandHandler.cpp @@ -935,7 +935,7 @@ bool CCECCommandHandler::Transmit(cec_command &command, bool bExpectResponse /* command.transmit_timeout = m_iTransmitTimeout; { - uint8_t iTries(0), iMaxTries(command.opcode == CEC_OPCODE_NONE ? 1 : m_iTransmitRetries); + uint8_t iTries(0), iMaxTries(command.opcode == CEC_OPCODE_NONE ? 1 : m_iTransmitRetries + 1); CLockObject writeLock(&m_processor->m_transmitMutex); CLockObject receiveLock(&m_receiveMutex); ++m_iUseCounter;