calculate correct offset for other bands

This commit is contained in:
Ralph Metzler 2018-10-16 21:17:41 +02:00
parent 044d4edd35
commit fff388c93c
1 changed files with 11 additions and 4 deletions

View File

@ -360,10 +360,17 @@ static int tune_dvbs2(struct dvbfe *fe)
{ {
if (lofs) if (lofs)
hi = (freq > lofs) ? 1 : 0; hi = (freq > lofs) ? 1 : 0;
if (hi) if (lofs > 10000000) {
freq -= fe->lof2[lnbc]; if (hi)
else freq -= fe->lof2[lnbc];
freq -= fe->lof1[lnbc]; else
freq -= fe->lof1[lnbc];
} else {
if (hi)
freq = fe->lof2[lnbc] - freq;
else
freq = fe->lof1[lnbc] - freq;
}
} }
if (fe->first) { if (fe->first) {
fe->first = 0; fe->first = 0;