X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2Fdevices%2FCECBusDevice.cpp;h=77e646174ba5975df4748429d02ad832885881bf;hb=e5e86c76b70975d8a8c03c58a230a70726399906;hp=7c2f6bf5705f89c501f1ce2ab2b9ea6d9f0c6335;hpb=a1f8fb1b065d260eb9d6eaf7e053f7415b453613;p=deb_libcec.git diff --git a/src/lib/devices/CECBusDevice.cpp b/src/lib/devices/CECBusDevice.cpp index 7c2f6bf..77e6461 100644 --- a/src/lib/devices/CECBusDevice.cpp +++ b/src/lib/devices/CECBusDevice.cpp @@ -340,7 +340,7 @@ void CCECBusDevice::SetVendorId(uint64_t iVendorId, uint8_t iVendorClass /* = 0 bool CCECBusDevice::TransmitActiveSource(void) { CStdString strLog; - strLog.Format("<< %x -> broadcast: active source", m_iLogicalAddress); + strLog.Format("<< %x -> broadcast: active source (%4x)", m_iLogicalAddress, m_iPhysicalAddress); AddLog(CEC_LOG_NOTICE, strLog); cec_command command; @@ -354,7 +354,7 @@ bool CCECBusDevice::TransmitActiveSource(void) bool CCECBusDevice::TransmitActiveView(void) { CStdString strLog; - strLog.Format("<< %x -> broadcast: active view", m_iLogicalAddress); + strLog.Format("<< %x -> broadcast: active view (%4x)", m_iLogicalAddress, m_iPhysicalAddress); AddLog(CEC_LOG_NOTICE, strLog); cec_command command; @@ -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); }