make texts translateable and add german locale for new DVDBurn changes
[enigma2.git] / lib / python / Components / NimManager.py
index 0290ff6dc312e8aeaa006b8ce1d618234e1f82fa..f4e91083e351d6382a0ed9f43785bea07668230a 100644 (file)
@@ -58,14 +58,6 @@ class SecConfigure:
                sec.setRepeats(0)
                sec.setFastDiSEqC(fastDiSEqC)
                sec.setSeqRepeat(0)
-
-               if setVoltageTone:
-                       sec.setVoltageMode(switchParam.HV)
-                       sec.setToneMode(switchParam.HILO)
-               else:
-                       sec.setVoltageMode(switchParam._14V)
-                       sec.setToneMode(switchParam.OFF)
-
                sec.setCommandOrder(0)
 
                #user values
@@ -77,6 +69,12 @@ class SecConfigure:
 
                if 0 <= diseqcmode < 3:
                        self.addSatellite(sec, orbpos)
+                       if setVoltageTone:
+                               sec.setVoltageMode(switchParam.HV)
+                               sec.setToneMode(switchParam.HILO)
+                       else:
+                               sec.setVoltageMode(switchParam._14V)
+                               sec.setToneMode(switchParam.OFF)
                elif (diseqcmode == 3): # diseqc 1.2
                        if self.satposdepends.has_key(slotid):
                                for slot in self.satposdepends[slotid]:
@@ -860,6 +858,14 @@ def InitSecParams():
        x.addNotifier(lambda configElement: secClass.setParam(secClass.MOTOR_COMMAND_RETRIES, configElement.value))
        config.sec.motor_command_retries = x
 
+       x = ConfigInteger(default=50, limits = (0, 9999))
+       x.addNotifier(lambda configElement: secClass.setParam(secClass.DELAY_AFTER_DISEQC_RESET_CMD, configElement.value))
+       config.sec.delay_after_diseqc_reset_cmd = x
+
+       x = ConfigInteger(default=150, limits = (0, 9999))
+       x.addNotifier(lambda configElement: secClass.setParam(secClass.DELAY_AFTER_DISEQC_PERIPHERIAL_POWERON_CMD, configElement.value))
+       config.sec.delay_after_diseqc_peripherial_poweron_cmd = x
+
 # TODO add support for satpos depending nims to advanced nim configuration
 # so a second/third/fourth cable from a motorized lnb can used behind a
 # diseqc 1.0 / diseqc 1.1 / toneburst switch