fix rfmod audio (on and off was swapped)
[enigma2.git] / lib / python / Components / RFmod.py
index 234ae4c..be088a5 100644 (file)
@@ -1,5 +1,5 @@
-from config import *
-from enigma import *
+from config import config, ConfigSelection, ConfigSubsection, ConfigOnOff, ConfigSlider
+from enigma import eRFmod
 
 # CHECK ME.
 RFMOD_CHANNEL_MIN = 21
@@ -14,7 +14,7 @@ class RFmod:
        def setTestmode(self, value):
                eRFmod.getInstance().setTestmode(value)
        def setSoundFunction(self, value):
-               eRFmod.getInstance().setSoundFunction(value)
+               eRFmod.getInstance().setSoundFunction(not value)
        def setSoundCarrier(self, value):
                eRFmod.getInstance().setSoundCarrier(value)
        def setChannel(self, value):
@@ -24,7 +24,7 @@ class RFmod:
 
 def InitRFmod():
 
-       config.rfmod = ConfigSubsection();
+       config.rfmod = ConfigSubsection()
        config.rfmod.enable = ConfigOnOff(default=False)
        config.rfmod.test = ConfigOnOff(default=False)
        config.rfmod.sound = ConfigOnOff(default=True)