also try polls at least twice when it failed
authorLars Op den Kamp <lars@opdenkamp.eu>
Tue, 4 Dec 2012 01:56:48 +0000 (02:56 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Tue, 4 Dec 2012 01:56:48 +0000 (02:56 +0100)
src/lib/implementations/CECCommandHandler.cpp

index 1274dd2e8e17e8c997a9ffd75e45a8d6a7b7d158..174275ca2e48850fc4c9b63511ef1345949a04ac 100644 (file)
@@ -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)