AddLog(CEC_LOG_DEBUG, strLog);
SetAckMask(0x1 << address);
- if (!m_busDevices[address]->PollDevice(address))
+ if (!m_busDevices[address]->TransmitPoll(address))
{
strLog.Format("using logical address '%s'", strLabel);
AddLog(CEC_LOG_NOTICE, strLog);
m_logicalAddresses.set(address);
// TODO
- m_busDevices[address]->SetPhysicalAddress(CEC_DEFAULT_PHYSICAL_ADDRESS + iIndex);
+ m_busDevices[address]->SetPhysicalAddress(CEC_DEFAULT_PHYSICAL_ADDRESS + (iIndex * 0x100));
return true;
}
bool CCECProcessor::PollDevice(cec_logical_address iAddress)
{
if (iAddress != CECDEVICE_UNKNOWN && m_busDevices[iAddress])
- return m_busDevices[iAddress]->PollDevice();
+ return m_busDevices[m_logicalAddresses.primary]->TransmitPoll(iAddress);
return false;
}