code comments
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Sat, 28 Jan 2006 15:47:58 +0000 (15:47 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Sat, 28 Jan 2006 15:47:58 +0000 (15:47 +0000)
lib/dvb/sec.cpp

index 58a1b6fa657e0d751298fd39db701127d19eb8b8..9095ca6a790239166fb227d41f0c6ad84d46b397 100644 (file)
@@ -144,16 +144,18 @@ int eDVBSatelliteEquipmentControl::canTune(const eDVBFrontendParametersSatellite
                                        {
                                                rotor=true;
                                                if ( curRotorPos == sat.orbital_position )
                                        {
                                                rotor=true;
                                                if ( curRotorPos == sat.orbital_position )
-                                                       ret=20;
+                                                       ret=20;  // rotor on correct orbpos = prio 20
                                                else
                                                else
-                                                       ret=10;
+                                                       ret=10;  // rotor must turn to correct orbpos = prio 10
                                        }
                                        }
+                                       else
+                                               ret = 30;  // no rotor = prio 30
                                }
                                else
                                }
                                else
+                               {
                                        csw = band;
                                        csw = band;
-
-                               if (!ret)
-                                       ret=40;
+                                       ret = 40;  // no diseqc = prio 40
+                               }
 
                                if (linked_to != -1)  // check for linked tuners..
                                {
 
                                if (linked_to != -1)  // check for linked tuners..
                                {