cec: fixed typo in CCECCommandHandler::Transmit()
authorLars Op den Kamp <lars@opdenkamp.eu>
Wed, 28 Dec 2011 02:07:21 +0000 (03:07 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Wed, 28 Dec 2011 02:07:21 +0000 (03:07 +0100)
src/lib/implementations/CECCommandHandler.cpp

index 3c8738f758dd0e59db8a9c88a7c3919af5045a2f..0fac17f9fca86aaf1affbb4c0b8770321b30fba5 100644 (file)
@@ -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;