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)
hi = (freq > lofs) ? 1 : 0;
if (hi)
freq -= fe->lof2[lnbc];
else
freq -= fe->lof1[lnbc];
if (lofs > 10000000) {
if (hi)
freq -= fe->lof2[lnbc];
else
freq -= fe->lof1[lnbc];
} else {
if (hi)
freq = fe->lof2[lnbc] - freq;
else
freq = fe->lof1[lnbc] - freq;
}
}
if (fe->first) {
fe->first = 0;