cec: send the correct cec version for each device
authorLars Op den Kamp <lars@opdenkamp.eu>
Sun, 6 Nov 2011 11:36:16 +0000 (12:36 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Sun, 6 Nov 2011 11:36:16 +0000 (12:36 +0100)
src/lib/devices/CECBusDevice.cpp

index 07675cdf69354c021cbb53114034f1c080239d51..a4580594432997fc45aab30f2699812f1ed82ee5 100644 (file)
@@ -46,7 +46,7 @@ CCECBusDevice::CCECBusDevice(CCECProcessor *processor, cec_logical_address iLogi
   m_processor(processor),
   m_iVendorClass(CEC_VENDOR_UNKNOWN),
   m_iLastActive(0),
-  m_cecVersion(CEC_VERSION_UNKNOWN)
+  m_cecVersion(CEC_VERSION_1_3A)
 {
   m_handler = new CCECCommandHandler(this);
 
@@ -284,7 +284,7 @@ bool CCECBusDevice::ReportCECVersion(cec_logical_address dest)
 
   cec_command command;
   cec_command::format(command, m_iLogicalAddress, dest, CEC_OPCODE_CEC_VERSION);
-  command.parameters.push_back(CEC_VERSION_1_3A);
+  command.parameters.push_back(m_cecVersion);
 
   return m_processor->Transmit(command);
 }