From: Lars Op den Kamp Date: Sun, 6 Nov 2011 11:36:16 +0000 (+0100) Subject: cec: send the correct cec version for each device X-Git-Tag: upstream/2.2.0~1^2~107 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;ds=sidebyside;h=700c1ea7da4dee67289b704313ae26c92ec4a39c;p=deb_libcec.git cec: send the correct cec version for each device --- diff --git a/src/lib/devices/CECBusDevice.cpp b/src/lib/devices/CECBusDevice.cpp index 07675cd..a458059 100644 --- a/src/lib/devices/CECBusDevice.cpp +++ b/src/lib/devices/CECBusDevice.cpp @@ -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); }