From 9e08680a74844bfcd2f4a600e1a67db70dc51fec Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Thu, 28 Aug 2008 08:46:25 +0000 Subject: [PATCH] fix tune failed problems on fast zap --- lib/dvb/sec.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/dvb/sec.cpp b/lib/dvb/sec.cpp index 4cb7be2d..3c6834c7 100644 --- a/lib/dvb/sec.cpp +++ b/lib/dvb/sec.cpp @@ -12,7 +12,7 @@ #endif #include -//#define SEC_DEBUG +#define SEC_DEBUG #ifdef SEC_DEBUG #define eSecDebug(arg...) eDebug(arg) @@ -539,14 +539,13 @@ RESULT eDVBSatelliteEquipmentControl::prepare(iDVBFrontend &frontend, FRONTENDPA // check if voltage is already correct.. compare.voltage = vlt; - compare.steps = +8; + compare.steps = +7; sec_sequence.push_back( eSecCommand(eSecCommand::IF_VOLTAGE_GOTO, compare) ); // check if voltage is disabled compare.voltage = iDVBFrontend::voltageOff; - compare.steps = +5; + compare.steps = +4; sec_sequence.push_back( eSecCommand(eSecCommand::IF_VOLTAGE_GOTO, compare) ); - sec_sequence.push_back( eSecCommand(eSecCommand::INVALIDATE_CURRENT_SWITCHPARMS) ); // voltage is changed... use DELAY_AFTER_VOLTAGE_CHANGE_BEFORE_SWITCH_CMDS sec_sequence.push_back( eSecCommand(eSecCommand::SET_VOLTAGE, vlt) ); @@ -557,6 +556,7 @@ RESULT eDVBSatelliteEquipmentControl::prepare(iDVBFrontend &frontend, FRONTENDPA sec_sequence.push_back( eSecCommand(eSecCommand::SET_VOLTAGE, vlt) ); sec_sequence.push_back( eSecCommand(eSecCommand::SLEEP, m_params[DELAY_AFTER_ENABLE_VOLTAGE_BEFORE_SWITCH_CMDS]) ); + sec_sequence.push_back( eSecCommand(eSecCommand::INVALIDATE_CURRENT_SWITCHPARMS) ); for (int seq_repeat = 0; seq_repeat < (di_param.m_seq_repeat?2:1); ++seq_repeat) { if ( send_mask & 4 ) -- 2.30.2