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;
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;
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);
}