projects
/
vuplus_dvbapp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
db8afbc
)
ignore diseqc repeats in diseqc 1.0 mode
author
ghost
<andreas.monzner@multimedia-labs.de>
Thu, 25 Nov 2010 22:31:22 +0000
(23:31 +0100)
committer
ghost
<andreas.monzner@multimedia-labs.de>
Thu, 25 Nov 2010 22:31:22 +0000
(23:31 +0100)
refs #623
lib/dvb/sec.cpp
patch
|
blob
|
history
diff --git
a/lib/dvb/sec.cpp
b/lib/dvb/sec.cpp
index
d48d44e
..
a8d2d92
100644
(file)
--- a/
lib/dvb/sec.cpp
+++ b/
lib/dvb/sec.cpp
@@
-551,6
+551,7
@@
RESULT eDVBSatelliteEquipmentControl::prepare(iDVBFrontend &frontend, FRONTENDPA
if ( send_mask )
{
if ( send_mask )
{
+ int diseqc_repeats = diseqc_mode > eDVBSatelliteDiseqcParameters::V1_0 ? di_param.m_repeats : 0;
int vlt = iDVBFrontend::voltageOff;
eSecCommand::pair compare;
compare.steps = +3;
int vlt = iDVBFrontend::voltageOff;
eSecCommand::pair compare;
compare.steps = +3;
@@
-623,7
+624,7
@@
RESULT eDVBSatelliteEquipmentControl::prepare(iDVBFrontend &frontend, FRONTENDPA
if ( send_mask & 2 )
++loops;
if ( send_mask & 2 )
++loops;
- loops <<= di
_param.m
_repeats;
+ loops <<= di
seqc
_repeats;
for ( int i = 0; i < loops;) // fill commands...
{
for ( int i = 0; i < loops;) // fill commands...
{
@@
-660,7
+661,7
@@
RESULT eDVBSatelliteEquipmentControl::prepare(iDVBFrontend &frontend, FRONTENDPA
int tmp = m_params[DELAY_BETWEEN_DISEQC_REPEATS];
if (cmd)
{
int tmp = m_params[DELAY_BETWEEN_DISEQC_REPEATS];
if (cmd)
{
- int delay = di
_param.m
_repeats ? (tmp - 54) / 2 : tmp; // standard says 100msek between two repeated commands
+ int delay = di
seqc
_repeats ? (tmp - 54) / 2 : tmp; // 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;
sec_sequence.push_back( eSecCommand(eSecCommand::SLEEP, delay) );
diseqc.data[2]=cmd;
diseqc.data[3]=(cmd==0x38) ? csw : ucsw;