cec: send the correct device type in TransmitPhysicalAddress()
authorLars Op den Kamp <lars@opdenkamp.eu>
Sun, 6 Nov 2011 15:07:55 +0000 (16:07 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Sun, 6 Nov 2011 15:07:55 +0000 (16:07 +0100)
src/lib/devices/CECBusDevice.cpp

index 999270bdd93fb6666570632e7e098d949bf7249f..77e646174ba5975df4748429d02ad832885881bf 100644 (file)
@@ -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);
 }