diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2007-02-14 11:20:56 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2007-02-14 11:20:56 +0000 |
| commit | ad1e1a62302f33cf428da8141ae2a731bb3137de (patch) | |
| tree | b8aceee37d4c98d6d66dc52514134b76a5f00046 /lib | |
| parent | b6ad75135e8a2a3f8731e53a00f62a139251b805 (diff) | |
| download | enigma2-ad1e1a62302f33cf428da8141ae2a731bb3137de.tar.gz enigma2-ad1e1a62302f33cf428da8141ae2a731bb3137de.zip | |
make retransmit rotor diseqc command retries changable
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/dvb/sec.cpp | 2 | ||||
| -rw-r--r-- | lib/dvb/sec.h | 1 | ||||
| -rw-r--r-- | lib/python/Components/NimManager.py | 5 |
3 files changed, 7 insertions, 1 deletions
diff --git a/lib/dvb/sec.cpp b/lib/dvb/sec.cpp index 81008c7b..a1e94996 100644 --- a/lib/dvb/sec.cpp +++ b/lib/dvb/sec.cpp @@ -689,7 +689,7 @@ RESULT eDVBSatelliteEquipmentControl::prepare(iDVBFrontend &frontend, FRONTENDPA sec_sequence.push_back( eSecCommand(eSecCommand::IF_MEASURE_IDLE_WAS_NOT_OK_GOTO, compare) ); //////////////////////////// sec_sequence.push_back( eSecCommand(eSecCommand::SET_POWER_LIMITING_MODE, eSecCommand::modeStatic) ); - sec_sequence.push_back( eSecCommand(eSecCommand::SET_ROTOR_DISEQC_RETRYS, 2) ); // 2 retries + sec_sequence.push_back( eSecCommand(eSecCommand::SET_ROTOR_DISEQC_RETRYS, m_params[MOTOR_COMMAND_RETRIES]) ); // 2 retries sec_sequence.push_back( eSecCommand(eSecCommand::INVALIDATE_CURRENT_ROTORPARMS) ); sec_sequence.push_back( eSecCommand(eSecCommand::SEND_DISEQC, diseqc) ); sec_sequence.push_back( eSecCommand(eSecCommand::SET_TIMEOUT, 40) ); // 2 seconds rotor start timout diff --git a/lib/dvb/sec.h b/lib/dvb/sec.h index 88617407..e5273f8e 100644 --- a/lib/dvb/sec.h +++ b/lib/dvb/sec.h @@ -253,6 +253,7 @@ public: DELAY_AFTER_ENABLE_VOLTAGE_BEFORE_MOTOR_CMD, // delay after enable voltage before transmit motor command DELAY_AFTER_MOTOR_STOP_CMD, // delay after transmit motor stop DELAY_AFTER_VOLTAGE_CHANGE_BEFORE_MOTOR_CMD, // delay after voltage change before transmit motor command + MOTOR_COMMAND_RETRIES, // max transmit tries of rotor command when the rotor dont start turning (with power measurement) MOTOR_RUNNING_TIMEOUT, // max motor running time before timeout MAX_PARAMS }; diff --git a/lib/python/Components/NimManager.py b/lib/python/Components/NimManager.py index d6d9d786..818a443e 100644 --- a/lib/python/Components/NimManager.py +++ b/lib/python/Components/NimManager.py @@ -691,6 +691,11 @@ def InitSecParams(): x.addNotifier(lambda configElement: secClass.setParam(secClass.MOTOR_RUNNING_TIMEOUT, configElement.value)) config.sec.motor_running_timeout = x + x = ConfigInteger(default=2) + x.addNotifier(lambda configElement: secClass.setParam(secClass.MOTOR_COMMAND_RETRIES, configElement.value)) + config.sec.motor_command_retries = x + + def InitNimManager(nimmgr): InitSecParams() |
