if self.equal.has_key(slotid):
for slot in self.equal[slotid]:
tunermask |= (1 << slot)
- elif self.linked.has_key(slotid):
+ if self.linked.has_key(slotid):
for slot in self.linked[slotid]:
tunermask |= (1 << slot)
sec.setLNBSatCR(-1)
if self.equal.has_key(slotid):
for slot in self.equal[slotid]:
tunermask |= (1 << slot)
- elif self.linked.has_key(slotid):
+ if self.linked.has_key(slotid):
for slot in self.linked[slotid]:
tunermask |= (1 << slot)
elif dm == "1_2":
sec.setDiSEqCMode(diseqcParam.V1_2)
- if self.satposdepends.has_key(slotid):
- for slot in self.satposdepends[slotid]:
- tunermask |= (1 << slot)
+ if self.satposdepends.has_key(slotid):
+ for slot in self.satposdepends[slotid]:
+ tunermask |= (1 << slot)
if dm != "none":
if currLnb.toneburst.value == "none":
def getSatList(self):
return self.satList
+
+ # returns True if something is configured to be connected to this nim
+ # if slotid == -1, returns if something is connected to ANY nim
+ def somethingConnected(self, slotid = -1):
+ if (slotid == -1):
+ connected = False
+ for id in range(self.getSlotCount()):
+ if self.somethingConnected(id):
+ connected = True
+ return connected
+ else:
+ nim = config.Nims[slotid]
+ configMode = nim.configMode.value
+
+ if self.nim_slots[slotid].isCompatible("DVB-S") or self.nim_slots[slotid].isCompatible("DVB-T") or self.nim_slots[slotid].isCompatible("DVB-C"):
+ return not (configMode == "nothing")
def getSatListForNim(self, slotid):
list = []