def InitRFmod():
config.rfmod = ConfigSubsection();
- config.rfmod.enable = configElement("config.rfmod.enable", configBoolean, 1, ("Enable", "Disable") );
- config.rfmod.test = configElement("config.rfmod.test", configBoolean, 1, ("Enable", "Disable") );
- config.rfmod.sound = configElement("config.rfmod.sound", configBoolean, 0, ("Enable", "Disable") );
- config.rfmod.soundcarrier = configElement("config.rfmod.soundcarrier", configBoolean, 1, ("4.5 MHz", "5.5 MHz", "6.0 MHz", "6.5 MHz") );
- config.rfmod.channel = configElement("config.rfmod.channel", configBoolean, 6, ("30", "31", "32", "33", "34", "35", "36", "37", "38", "39") );
+ config.rfmod.enable = configElement("config.rfmod.enable", configSelection, 1, (("enable", _("Enable")), ("disable", _("Disable"))) );
+ config.rfmod.test = configElement("config.rfmod.test", configSelection, 1, (("enable", _("Enable")), ("disable", _("Disable"))) );
+ config.rfmod.sound = configElement("config.rfmod.sound", configSelection, 0, (("enable", _("Enable")), ("disable", _("Disable"))) );
+ config.rfmod.soundcarrier = configElement("config.rfmod.soundcarrier", configSelection, 1, ("4.5 MHz", "5.5 MHz", "6.0 MHz", "6.5 MHz") );
+ config.rfmod.channel = configElement("config.rfmod.channel", configSelection, 6, ("30", "31", "32", "33", "34", "35", "36", "37", "38", "39") );
config.rfmod.finetune = configElement("config.rfmod.finetune", ConfigSlider, 5, "");
iRFmod = RFmod()
def setSoundCarrier(configElement):
iRFmod.setSoundCarrier(configElement.value);
def setChannel(configElement):
- iRFmod.setChannel(configElement.value);
+ iRFmod.setChannel(configElement.value + 30);
def setFinetune(configElement):
- iRFmod.setFinetune(configElement.value);
+ iRFmod.setFinetune(configElement.value - 5);
# this will call the "setup-val" initial
config.rfmod.enable.addNotifier(setFunction);