cec: set the correct logical address mask before switching to autonomous mode. bugzid...
[deb_libcec.git] / src / lib / adapter / USBCECAdapterCommunication.cpp
index e130514ee807df6bbac77affde5dc40d068b52a9..ef1be8362a76524f78a6729de4fe5859593f0ad2 100644 (file)
@@ -578,7 +578,7 @@ bool CUSBCECAdapterCommunication::PersistConfiguration(libcec_configuration *con
   bReturn &= SetAutoEnabled(true);
   bReturn &= SetDeviceType(CLibCEC::GetType(configuration->logicalAddresses.primary));
   bReturn &= SetDefaultLogicalAddress(configuration->logicalAddresses.primary);
-  bReturn &= SetLogicalAddressMask(configuration->logicalAddresses.AckMask());
+  bReturn &= SetLogicalAddressMask(CLibCEC::GetMaskForType(configuration->logicalAddresses.primary));
   bReturn &= SetPhysicalAddress(configuration->iPhysicalAddress);
   bReturn &= SetCECVersion(CEC_VERSION_1_3A);
   bReturn &= SetOSDName(configuration->strDeviceName);