From: Lars Op den Kamp Date: Wed, 18 Apr 2012 08:28:43 +0000 (+0200) Subject: cec: fixed typo in CUSBCECAdapterCommands::RequestSettings() that prevented the setti... X-Git-Tag: upstream/2.2.0~1^2~30^2~1 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=4c70b3b633af12c0d42e8730db1081d79e99ceb2;p=deb_libcec.git cec: fixed typo in CUSBCECAdapterCommands::RequestSettings() that prevented the settings from being read. the settings were still written, but never read when bGetSettingsFromROM = 1 --- diff --git a/src/lib/adapter/USBCECAdapterCommands.cpp b/src/lib/adapter/USBCECAdapterCommands.cpp index cea0561..543dbce 100644 --- a/src/lib/adapter/USBCECAdapterCommands.cpp +++ b/src/lib/adapter/USBCECAdapterCommands.cpp @@ -416,11 +416,12 @@ bool CUSBCECAdapterCommands::RequestSettings(void) { if (m_persistedConfiguration.iFirmwareVersion < 2) { + CLibCEC::AddLog(CEC_LOG_DEBUG, "%s - firmware version %d does not have any eeprom settings", __FUNCTION__, m_persistedConfiguration.iFirmwareVersion); // settings can only be persisted with firmware v2+ return false; } - if (!m_bSettingsRetrieved) + if (m_bSettingsRetrieved) return true; bool bReturn(true);