- print "slot: " + str(x) + " configmode: " + str(config.Nims[x].configMode.value)
- if config.Nims[x].configMode.value == 0: #simple config
- if config.Nims[x].diseqcMode.value == 0: #single
- self.addLNBSimple(x, int(config.Nims[x].diseqcA.vals[config.Nims[x].diseqcA.value][1]), 0, 0, 4)
- elif config.Nims[x].diseqcMode.value == 1: #Toneburst A/B
- self.addLNBSimple(x, int(config.Nims[x].diseqcA.vals[config.Nims[x].diseqcA.value][1]), 1, 0, 4)
- self.addLNBSimple(x, int(config.Nims[x].diseqcB.vals[config.Nims[x].diseqcB.value][1]), 1, 0, 4)
- elif config.Nims[x].diseqcMode.value == 2: #DiSEqC A/B
- self.addLNBSimple(x, int(config.Nims[x].diseqcA.vals[config.Nims[x].diseqcA.value][1]), 0, 1, 0)
- self.addLNBSimple(x, int(config.Nims[x].diseqcB.vals[config.Nims[x].diseqcB.value][1]), 0, 1, 1)
- elif config.Nims[x].diseqcMode.value == 3: #DiSEqC A/B/C/D
- self.addLNBSimple(x, int(config.Nims[x].diseqcA.vals[config.Nims[x].diseqcA.value][1]), 0, 1, 0)
- self.addLNBSimple(x, int(config.Nims[x].diseqcB.vals[config.Nims[x].diseqcB.value][1]), 0, 1, 1)
- self.addLNBSimple(x, int(config.Nims[x].diseqcC.vals[config.Nims[x].diseqcC.value][1]), 0, 1, 2)
- self.addLNBSimple(x, int(config.Nims[x].diseqcD.vals[config.Nims[x].diseqcD.value][1]), 0, 1, 3)
- elif config.Nims[x].diseqcMode.value == 4: #Positioner
+ print "slot: " + str(x) + " configmode: " + str(nim.configMode.value)
+ if nim.configMode.value == 0: #simple config
+ if nim.diseqcMode.value == 0: #single
+ self.addLNBSimple(x, int(nim.diseqcA.vals[nim.diseqcA.value][1]), 0, 0, 4)
+ elif nim.diseqcMode.value == 1: #Toneburst A/B
+ self.addLNBSimple(x, int(nim.diseqcA.vals[nim.diseqcA.value][1]), 1, 0, 4)
+ self.addLNBSimple(x, int(nim.diseqcB.vals[nim.diseqcB.value][1]), 1, 0, 4)
+ elif nim.diseqcMode.value == 2: #DiSEqC A/B
+ self.addLNBSimple(x, int(nim.diseqcA.vals[nim.diseqcA.value][1]), 0, 1, 0)
+ self.addLNBSimple(x, int(nim.diseqcB.vals[nim.diseqcB.value][1]), 0, 1, 1)
+ elif nim.diseqcMode.value == 3: #DiSEqC A/B/C/D
+ self.addLNBSimple(x, int(nim.diseqcA.vals[nim.diseqcA.value][1]), 0, 1, 0)
+ self.addLNBSimple(x, int(nim.diseqcB.vals[nim.diseqcB.value][1]), 0, 1, 1)
+ self.addLNBSimple(x, int(nim.diseqcC.vals[nim.diseqcC.value][1]), 0, 1, 2)
+ self.addLNBSimple(x, int(nim.diseqcD.vals[nim.diseqcD.value][1]), 0, 1, 3)
+ elif nim.diseqcMode.value == 4: #Positioner