From: Lars Op den Kamp Date: Sun, 6 Nov 2011 15:07:55 +0000 (+0100) Subject: cec: send the correct device type in TransmitPhysicalAddress() X-Git-Tag: upstream/2.2.0~1^2~97 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=6fc979234df9595da0d215bb6d5253b7f74ed6a4;p=deb_libcec.git cec: send the correct device type in TransmitPhysicalAddress() --- diff --git a/src/lib/devices/CECBusDevice.cpp b/src/lib/devices/CECBusDevice.cpp index 999270b..77e6461 100644 --- a/src/lib/devices/CECBusDevice.cpp +++ b/src/lib/devices/CECBusDevice.cpp @@ -481,7 +481,7 @@ bool CCECBusDevice::TransmitPhysicalAddress(void) cec_command::format(command, m_iLogicalAddress, CECDEVICE_BROADCAST, CEC_OPCODE_REPORT_PHYSICAL_ADDRESS); command.parameters.push_back((uint8_t) ((m_iPhysicalAddress >> 8) & 0xFF)); command.parameters.push_back((uint8_t) (m_iPhysicalAddress & 0xFF)); - command.parameters.push_back((uint8_t) (CEC_DEVICE_TYPE_PLAYBACK_DEVICE)); + command.parameters.push_back((uint8_t) (m_type)); return m_processor->Transmit(command); }