bool CCECBusDevice::TransmitPhysicalAddress(void)
{
CLockObject lock(&m_writeMutex);
+
+ if (m_iPhysicalAddress = 0xffff)
+ return false;
+
CStdString strLog;
strLog.Format("<< %s (%X) -> broadcast (F): physical adddress %4x", GetLogicalAddressName(), m_iLogicalAddress, m_iPhysicalAddress);
AddLog(CEC_LOG_NOTICE, strLog.c_str());
if (dest == CECDEVICE_UNKNOWN)
dest = m_iLogicalAddress;
+ CLockObject lock(&m_writeMutex);
+
CStdString strLog;
strLog.Format("<< %s (%X) -> %s (%X): POLL", GetLogicalAddressName(), m_iLogicalAddress, ToString(dest), dest);
AddLog(CEC_LOG_NOTICE, strLog.c_str());
}
AddLog(CEC_LOG_DEBUG, bReturn ? ">> POLL sent" : ">> POLL not sent");
-
if (bReturn)
- {
- CLockObject lock(&m_writeMutex);
m_iLastActive = GetTimeMs();
- }
return bReturn;
}