fixed sequence to floating point conversion in usals parameters
[enigma2.git] / lib / python / Components / NimManager.py
index 60484d615a2e725116a94f8f74ff93aaa48b9c40..b3be2603f433db5aca0c9034ccd569e88ce49684 100644 (file)
@@ -127,9 +127,9 @@ class SecConfigure:
                                                else:
                                                        loValue = rotorParam.WEST
                                                self.addLNBSimple(sec, slotid = x, diseqcmode = 3,
                                                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,
                                                        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":
                                                        laDirection = laValue)
 #                                      pass
                                elif currentConfigSelectionElement(nim.configMode) == "nothing":
@@ -254,9 +254,9 @@ class SecConfigure:
                                                sec.setCommandOrder(currCO)
                                                
                                if currentConfigSelectionElement(currLnb.diseqcMode) == "1_2":
                                                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)
                                        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)
                                        sec.setLongitude(longitude)
                                        if currentConfigSelectionElement(currLnb.latitudeOrientation) == "north":
                                                sec.setLaDirection(rotorParam.NORTH)