[frontend] Fix wrong comparison.
authorhschang <chang@dev3>
Wed, 18 Mar 2015 01:10:04 +0000 (10:10 +0900)
committerhschang <chang@dev3>
Wed, 18 Mar 2015 01:10:04 +0000 (10:10 +0900)
lib/dvb/frontend.cpp

index cf6ef6f..92ea602 100755 (executable)
@@ -3269,7 +3269,8 @@ bool eDVBFrontend::setSlotInfo(ePyObject obj)
 //                     m_slotid, m_description);
                return false;
        }
-       m_enabled = Enabled == Py_True;
+       Enabled == Py_True;
+       m_enabled = true;
        // HACK.. the rotor workaround is neede for all NIMs with LNBP21 voltage regulator...
        m_need_rotor_workaround = !!strstr(m_description, "Alps BSBE1") ||
                !!strstr(m_description, "Alps BSBE2") ||
@@ -3286,7 +3287,7 @@ bool eDVBFrontend::setSlotInfo(ePyObject obj)
                m_delsys[SYS_DVBT2] = true;
        }
        eDebugNoSimulate("setSlotInfo for dvb frontend %d to slotid %d, descr %s, need rotorworkaround %s, enabled %s, DVB-S2 %s, DVB-T2 %s",
-               m_dvbid, m_slotid, m_description, m_need_rotor_workaround ? "Yes" : "No", m_enabled == Py_True ? "Yes" : "No", IsDVBS2 == Py_True ? "Yes" : "No", IsDVBT2 == Py_True ? "Yes" : "No" );
+               m_dvbid, m_slotid, m_description, m_need_rotor_workaround ? "Yes" : "No", Enabled == Py_True ? "Yes" : "No", IsDVBS2 == Py_True ? "Yes" : "No", IsDVBT2 == Py_True ? "Yes" : "No" );
        return true;
 arg_error:
        PyErr_SetString(PyExc_StandardError,