fix rfmod
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Thu, 2 Nov 2006 18:52:59 +0000 (18:52 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Thu, 2 Nov 2006 18:52:59 +0000 (18:52 +0000)
lib/python/Components/RFmod.py

index ff87a72..234ae4c 100644 (file)
@@ -10,7 +10,7 @@ class RFmod:
                pass
 
        def setFunction(self, value):
-               eRFmod.getInstance().setFunction(value)
+               eRFmod.getInstance().setFunction(not value)
        def setTestmode(self, value):
                eRFmod.getInstance().setTestmode(value)
        def setSoundFunction(self, value):
@@ -41,7 +41,7 @@ def InitRFmod():
        def setSoundFunction(configElement):
                iRFmod.setSoundFunction(configElement.value);
        def setSoundCarrier(configElement):
-               iRFmod.setSoundCarrier(int(configElement.value));
+               iRFmod.setSoundCarrier(configElement.index);
        def setChannel(configElement):
                iRFmod.setChannel(int(configElement.value));
        def setFinetune(configElement):