if (SetAckMask(m_logicalAddresses.AckMask()) &&
SetHDMIPort(m_iBaseDevice, m_iHDMIPort, true))
{
- m_controller->AddLog(CEC_LOG_ERROR, "processor thread started");
+ m_controller->AddLog(CEC_LOG_DEBUG, "processor thread started");
m_busScan = new CCECBusScan(this);
m_busScan->CreateThread(true);
return true;
CLockObject lock(&m_mutex);
{
m_communication->SetLineTimeout(m_iStandardLineTimeout);
+ output->tries = 1;
do
{
}
else
bReturn = true;
- }while (output->transmit_timeout > 0 && output->needs_retry() && ++output->tries <= output->maxTries);
+ }while (output->transmit_timeout > 0 && output->needs_retry() && ++output->tries < output->maxTries);
}
m_communication->SetLineTimeout(m_iStandardLineTimeout);
return bReturn;
}
-bool CCECProcessor::SendKeypress(cec_logical_address iDestination, cec_user_control_code key)
+bool CCECProcessor::TransmitKeypress(cec_logical_address iDestination, cec_user_control_code key)
{
- return m_busDevices[iDestination]->SendKeypress(key);
+ return m_busDevices[iDestination]->TransmitKeypress(key);
}
-bool CCECProcessor::SendKeyRelease(cec_logical_address iDestination)
+bool CCECProcessor::TransmitKeyRelease(cec_logical_address iDestination)
{
- return m_busDevices[iDestination]->SendKeyRelease();
+ return m_busDevices[iDestination]->TransmitKeyRelease();
}
const char *CCECProcessor::ToString(const cec_menu_state state)
void *CCECBusScan::Process(void)
{
CCECBusDevice *device(NULL);
- int iCount(0);
+ int iCount(50);
while (!IsStopped())
{
if (iCount == 0)
{
- for (unsigned int iPtr = 0; iPtr < 15 && !IsStopped(); iPtr++)
+ for (unsigned int iPtr = 0; iPtr <= 11 && !IsStopped(); iPtr++)
{
device = m_processor->m_busDevices[iPtr];
if (device && device->GetStatus(true) == CEC_DEVICE_STATUS_PRESENT)
{
if (!IsStopped())
+ {
device->GetVendorId();
- Sleep(5);
+ Sleep(5);
+ }
+ if (!IsStopped())
+ {
+ device->GetPowerStatus(true);
+ Sleep(5);
+ }
}
}
}