fixed - if we failed to get the physical address of the device that we are connected...
[deb_libcec.git] / src / lib / CECProcessor.cpp
index 97f57a47ac67a2758850e6bdfbab5fcb08eb04ca..cc6adda8bf4826bfb0c28f63975bae66e60bfd94 100644 (file)
@@ -701,6 +701,14 @@ bool CCECProcessor::AllocateLogicalAddresses(CCECClient* client)
   return true;
 }
 
+uint16_t CCECProcessor::GetPhysicalAddressFromEeprom(void)
+{
+  libcec_configuration config; config.Clear();
+  if (m_communication)
+    m_communication->GetConfiguration(config);
+  return config.iPhysicalAddress;
+}
+
 bool CCECProcessor::RegisterClient(CCECClient *client)
 {
   if (!client)