fixed sequence to floating point conversion in usals parameters
[enigma2.git] / lib / python / Components / NimManager.py
index 96dee145dcd8eb755503b0916932b6d60ef3bba5..b3be2603f433db5aca0c9034ccd569e88ce49684 100644 (file)
@@ -127,9 +127,9 @@ class SecConfigure:
                                                else:
                                                        loValue = rotorParam.WEST
                                                self.addLNBSimple(sec, slotid = x, diseqcmode = 3,
-                                                       longitude = float(str(nim.longitude.value[0]) + "." + str(nim.longitude.value[1])),
+                                                       longitude = configsequencearg.getFloat(nim.longitude),
                                                        loDirection = loValue,
-                                                       latitude = float(str(nim.latitude.value[0]) + "." + str(nim.latitude.value[1])),
+                                                       latitude = configsequencearg.getFloat(nim.latitude),
                                                        laDirection = laValue)
 #                                      pass
                                elif currentConfigSelectionElement(nim.configMode) == "nothing":
@@ -254,9 +254,9 @@ class SecConfigure:
                                                sec.setCommandOrder(currCO)
                                                
                                if currentConfigSelectionElement(currLnb.diseqcMode) == "1_2":
-                                       latitude = float(str(currLnb.latitude.value[0]) + "." + str(currLnb.latitude.value[1]))
+                                       latitude = configsequencearg.getFloat(currLnb.latitude)
                                        sec.setLatitude(latitude)
-                                       longitude = float(str(currLnb.longitude.value[0]) + "." + str(currLnb.longitude.value[1]))
+                                       longitude = configsequencearg.getFloat(currLnb.longitude)
                                        sec.setLongitude(longitude)
                                        if currentConfigSelectionElement(currLnb.latitudeOrientation) == "north":
                                                sec.setLaDirection(rotorParam.NORTH)
@@ -682,7 +682,7 @@ def InitNimManager(nimmgr):
                                nim.advanced.lnb[x].longitudeOrientation = configElement(cname + "advanced.lnb" + str(x) + ".longitudeOrientation", configSelection, 0, (("east", _("East")), ("west", _("West"))))
                                nim.advanced.lnb[x].latitude = configElement(cname + "advanced.lnb" + str(x) + ".latitude", configSequence, [50,767], configsequencearg.get("FLOAT", [(0,90),(0,999)]))
                                nim.advanced.lnb[x].latitudeOrientation = configElement(cname + "advanced.lnb" + str(x) + ".latitudeOrientation", configSelection, 0, (("north", _("North")), ("south", _("South"))))
-                               nim.advanced.lnb[x].powerMeasurement = configElement(cname + "advanced.lnb" + str(x) + ".powerMeasurement", configSelection, 0, (("yes", _("Yes"))))#, ("no", _("No"))))
+                               nim.advanced.lnb[x].powerMeasurement = configElement(cname + "advanced.lnb" + str(x) + ".powerMeasurement", configSelection, 0, (("yes", _("Yes")), ("no", _("No"))))
                                nim.advanced.lnb[x].powerThreshold = configElement(cname + "advanced.lnb" + str(x) + ".powerThreshold", configSequence, [50], configsequencearg.get("INTEGER", (0, 100)))
                elif slot.nimType == nimmgr.nimType["DVB-C"]:
                        nim.cable = configElement(cname + "cable", configSelection, 0, nimmgr.cablesList);