cec: don't retry MSGCODE_GET_BUILDDATE if it was rejected by the controller, because...
authorLars Op den Kamp <lars@opdenkamp.eu>
Wed, 25 Apr 2012 12:50:38 +0000 (14:50 +0200)
committerLars Op den Kamp <lars@opdenkamp.eu>
Wed, 25 Apr 2012 12:50:38 +0000 (14:50 +0200)
src/lib/adapter/USBCECAdapterCommunication.cpp

index f2b5cd6a252555322f1f22e3b4eefd4e09836de9..d1e3565610973ddcf4a81b3cdd3a12c79fee716a 100644 (file)
@@ -380,7 +380,8 @@ CCECAdapterMessage *CUSBCECAdapterCommunication::SendCommand(cec_adapter_message
   }
   else
   {
-    if (!bIsRetry && output->Reply() == MSGCODE_COMMAND_REJECTED && msgCode != MSGCODE_SET_CONTROLLED)
+    if (!bIsRetry && output->Reply() == MSGCODE_COMMAND_REJECTED && msgCode != MSGCODE_SET_CONTROLLED &&
+        msgCode != MSGCODE_GET_BUILDDATE /* same messagecode value had a different meaning in older fw builds */)
     {
       /* if the controller reported that the command was rejected, and we didn't send the command
          to set controlled mode, then the controller probably switched to auto mode. set controlled