Skip to content

Commit

Permalink
[fastscan] more caclculate orbital position
Browse files Browse the repository at this point in the history
  • Loading branch information
Dima73 committed Apr 30, 2024
1 parent 3bac221 commit 96cb28a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/dvb/fastscan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -491,9 +491,9 @@ void eFastScan::parseResult()
{
eDVBChannelID chid;
int orbitalposbcd = (*it)->getOrbitalPosition();
int orbitalpos = (orbitalposbcd & 0x0f) + ((orbitalposbcd >> 4) & 0x0f) * 10 + ((orbitalposbcd >> 8) & 0x0f) * 100;
int orbitalpos = (orbitalposbcd & 0x0f) + ((orbitalposbcd >> 4) & 0x0f) * 10 + ((orbitalposbcd >> 8) & 0x0f) * 100 + ((orbitalposbcd >> 12) & 0x0f) * 1000;
int westeastflag = (*it)->getWestEastFlag();
if (!westeastflag)
if (orbitalpos && !westeastflag)
orbitalpos = 3600 - orbitalpos;

if ((orbitalpos == 0) || (drop && transponderParameters.orbital_position != orbitalpos &&
Expand Down

0 comments on commit 96cb28a

Please sign in to comment.