cec: included the logical addresses in the persisted configuration for v2. bugzid...
[deb_libcec.git] / src / lib / adapter / USBCECAdapterCommunication.cpp
index d2d4e6de8663c6e615938a68ed9f64b2e189383a..84a052dd302bab6c50b9b15dc5dc3fa0890ae9cb 100644 (file)
@@ -572,8 +572,8 @@ bool CUSBCECAdapterCommunication::SetAckMaskInternal(uint16_t iMask, bool bWrite
 bool CUSBCECAdapterCommunication::PersistConfiguration(libcec_configuration *configuration)
 {
   return SetAutoEnabled(true) &&
-      //SetDefaultLogicalAddress() TODO
-      //SetLogicalAddressMask() TODO
+      SetDefaultLogicalAddress(configuration->logicalAddresses.primary) &&
+      SetLogicalAddressMask(configuration->logicalAddresses.AckMask()) &&
       SetPhysicalAddress(configuration->iPhysicalAddress) &&
       SetCECVersion(CEC_VERSION_1_3A) &&
       SetOSDName(configuration->strDeviceName) &&