From: Lars Op den Kamp Date: Thu, 26 Apr 2012 09:50:13 +0000 (+0200) Subject: cec: don't retry in CCECCommandHandler if the command has been marked as unsupported X-Git-Tag: upstream/2.2.0~1^2~29^2^2~35 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=ec15344c49d44e9f6f8cd805b4f2be8d7ba9a439;p=deb_libcec.git cec: don't retry in CCECCommandHandler if the command has been marked as unsupported --- diff --git a/src/lib/implementations/CECCommandHandler.cpp b/src/lib/implementations/CECCommandHandler.cpp index 37e3dda..faefaf9 100644 --- a/src/lib/implementations/CECCommandHandler.cpp +++ b/src/lib/implementations/CECCommandHandler.cpp @@ -1011,7 +1011,7 @@ bool CCECCommandHandler::Transmit(cec_command &command, bool bExpectResponse /* { uint8_t iTries(0), iMaxTries(!command.opcode_set ? 1 : m_iTransmitRetries + 1); - while (!bReturn && ++iTries <= iMaxTries) + while (!bReturn && ++iTries <= iMaxTries && !m_busDevice->IsUnsupportedFeature(command.opcode)) { if ((bReturn = m_processor->Transmit(command)) == true) {