slotUI/slotCli.py

changeset 146
a1eb2dc83819
parent 143
cb514887cf17
--- a/slotUI/slotCli.py	Sat Dec 21 16:21:06 2013 +0100
+++ b/slotUI/slotCli.py	Sat Dec 21 16:51:38 2013 +0100
@@ -227,7 +227,10 @@
         sleep(0.5)
         self.box.speedlimit(slot, self.slot[slot]["limit"])
         sleep(0.5)
-        self.box.unlimitedfuel(slot, (self.slot[slot]["profile"].getint("Settings", "Fuel") == 0) )
+        if self.slot[slot]["profile"].getint("Settings", "Fuel") == 0:
+            self.box.unlimitedfuel(slot, True)
+        else:
+            self.box.unlimitedfuel(slot, False)
         sleep(0.5)
         self.cleartop()
         self.box.setmode(1)

mercurial