fix bluescreen when try to store a position in rotor
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Fri, 20 Oct 2006 12:59:31 +0000 (12:59 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Fri, 20 Oct 2006 12:59:31 +0000 (12:59 +0000)
lib/python/Plugins/SystemPlugins/PositionerSetup/plugin.py

index afdb6b6..4a14ba5 100644 (file)
@@ -233,8 +233,8 @@ class PositionerSetup(Screen):
                        print "stepping west"
                        self.diseqccommand("moveWest", 0xFF) # one step
                elif entry == "storage":
                        print "stepping west"
                        self.diseqccommand("moveWest", 0xFF) # one step
                elif entry == "storage":
-                       print "store at position", (self.positioner_storage.value + 1)
-                       self.diseqccommand("store", self.positioner_storage.value + 1)
+                       print "store at position", int(self.positioner_storage.value)
+                       self.diseqccommand("store", int(self.positioner_storage.value)
                elif entry == "limits":
                        self.diseqccommand("limitWest")
        
                elif entry == "limits":
                        self.diseqccommand("limitWest")