aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2008-10-09 22:18:08 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2008-10-09 22:18:08 +0000
commit793a21597557994f9e57ce16df22437fa38bd45e (patch)
tree96d13082cd9da64918a204485b9b87c32ada1643 /lib/python
parent1534ee3d4679bf797a153783d86c14d59cd596b8 (diff)
downloadenigma2-793a21597557994f9e57ce16df22437fa38bd45e.tar.gz
enigma2-793a21597557994f9e57ce16df22437fa38bd45e.zip
add delay before send sequence repeat (diseqc/toneburst)
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Components/NimManager.py7
-rw-r--r--lib/python/Plugins/SystemPlugins/SatelliteEquipmentControl/plugin.py1
2 files changed, 7 insertions, 1 deletions
diff --git a/lib/python/Components/NimManager.py b/lib/python/Components/NimManager.py
index aae7dabc..3c7a147e 100644
--- a/lib/python/Components/NimManager.py
+++ b/lib/python/Components/NimManager.py
@@ -822,6 +822,10 @@ def InitSecParams():
x.addNotifier(lambda configElement: secClass.setParam(secClass.DELAY_AFTER_VOLTAGE_CHANGE_BEFORE_MOTOR_CMD, configElement.value))
config.sec.delay_after_voltage_change_before_motor_command = x
+ x = ConfigInteger(default=70, limits = (0, 9999))
+ x.addNotifier(lambda configElement: secClass.setParam(secClass.DELAY_BEFORE_SEQUENCE_REPEAT, configElement.value))
+ config.sec.delay_before_sequence_repeat = x
+
x = ConfigInteger(default=360, limits = (0, 9999))
x.addNotifier(lambda configElement: secClass.setParam(secClass.MOTOR_RUNNING_TIMEOUT, configElement.value))
config.sec.motor_running_timeout = x
@@ -1030,7 +1034,8 @@ def InitNimManager(nimmgr):
nim.terrestrial_5V = ConfigOnOff()
else:
nim.configMode = ConfigSelection(choices = { "nothing": _("disabled") }, default="nothing");
- print "pls add support for this frontend type!"
+ if slot.type is not None:
+ print "pls add support for this frontend type!", slot.type
# assert False
nimmgr.sec = SecConfigure(nimmgr)
diff --git a/lib/python/Plugins/SystemPlugins/SatelliteEquipmentControl/plugin.py b/lib/python/Plugins/SystemPlugins/SatelliteEquipmentControl/plugin.py
index fa5ed24e..7b3d08f6 100644
--- a/lib/python/Plugins/SystemPlugins/SatelliteEquipmentControl/plugin.py
+++ b/lib/python/Plugins/SystemPlugins/SatelliteEquipmentControl/plugin.py
@@ -35,6 +35,7 @@ class SecParameterSetup(Screen, ConfigListScreen):
("Delay after enable voltage before motor command", config.sec.delay_after_enable_voltage_before_motor_command),
("Delay after motor stop command", config.sec.delay_after_motor_stop_command),
("Delay after voltage change before motor command", config.sec.delay_after_voltage_change_before_motor_command),
+ ("Delay before sequence repeat", config.sec.delay_before_sequence_repeat),
("Motor running timeout", config.sec.motor_running_timeout),
("Motor command retries", config.sec.motor_command_retries) ]
ConfigListScreen.__init__(self, list)