X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/071089dadf70e673b4558dc77b85f596b750b4a5..5aca87ce699f59f418740a2f073f1056d8239dad:/lib/python/Components/RFmod.py diff --git a/lib/python/Components/RFmod.py b/lib/python/Components/RFmod.py index 234ae4ca..be088a53 100644 --- a/lib/python/Components/RFmod.py +++ b/lib/python/Components/RFmod.py @@ -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)