add possibility to select "second cable of motorized LNB" also when the rotor is...
authorghost <andreas.monzner@multimedia-labs.de>
Sat, 8 Nov 2008 00:01:18 +0000 (01:01 +0100)
committerghost <andreas.monzner@multimedia-labs.de>
Sat, 8 Nov 2008 00:01:18 +0000 (01:01 +0100)
lib/python/Components/NimManager.py

index 3c1fe455aef61da9832f4a66a78b8d14f330332d..32fca47fb4f5767a94904e1993d45e2b6fe6511f 100644 (file)
@@ -683,6 +683,13 @@ class NimManager:
                                        if lnb != 0:
                                                nimHaveRotor = True
                                                break
+                               if not nimHaveRotor:
+                                       for sat in mode.advanced.sat.values():
+                                               lnb_num = int(sat.lnb.value)
+                                               diseqcmode = lnb_num and mode.advanced.lnb[lnb_num].diseqcMode.value or ""
+                                               if diseqcmode == "1_2":
+                                                       nimHaveRotor = True
+                                                       break
                        if nimHaveRotor:
                                alreadyConnected = False
                                for testnim in nimList: