diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2006-06-29 22:34:20 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2006-06-29 22:34:20 +0000 |
| commit | f5427e0c942b6b3b2910a73a986da3fa96cb0bbe (patch) | |
| tree | 38c1deb2867c43f1c81f1576bed07787e0e4de3f /lib/dvb/sec.cpp | |
| parent | f9ac4210fa12ea7399e2b129aae9532aa6fbfc2e (diff) | |
| download | enigma2-f5427e0c942b6b3b2910a73a986da3fa96cb0bbe.tar.gz enigma2-f5427e0c942b6b3b2910a73a986da3fa96cb0bbe.zip | |
much longer delay between committed and uncommitted diseqc command
Diffstat (limited to 'lib/dvb/sec.cpp')
| -rw-r--r-- | lib/dvb/sec.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/dvb/sec.cpp b/lib/dvb/sec.cpp index 7319a4be..3ab46c83 100644 --- a/lib/dvb/sec.cpp +++ b/lib/dvb/sec.cpp @@ -562,8 +562,7 @@ RESULT eDVBSatelliteEquipmentControl::prepare(iDVBFrontend &frontend, FRONTENDPA if ( send_mask & 2 ) ++loops; - for ( int i=0; i < di_param.m_repeats; ++i ) - loops *= 2; + loops *= 1 << di_param.m_repeats; for ( int i = 0; i < loops;) // fill commands... { @@ -598,7 +597,7 @@ RESULT eDVBSatelliteEquipmentControl::prepare(iDVBFrontend &frontend, FRONTENDPA cmd=0x38; if (cmd) { - static int delay = (120 - 54) / 2; // standard says 100msek between two repeated commands + int delay = di_param.m_repeats ? (120 - 54) / 2 : 120; // standard says 100msek between two repeated commands sec_sequence.push_back( eSecCommand(eSecCommand::SLEEP, delay) ); diseqc.data[2]=cmd; diseqc.data[3]=(cmd==0x38) ? csw : ucsw; |
