X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2Fimplementations%2FCECCommandHandler.cpp;h=174275ca2e48850fc4c9b63511ef1345949a04ac;hb=d0e533d0f9c090008ed77f841ff6bfa0c5a3c7e5;hp=1274dd2e8e17e8c997a9ffd75e45a8d6a7b7d158;hpb=6d2bc8defa92bf09ab5b6600a1d17b81c024b3d8;p=deb_libcec.git 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)