fixed unlimited fuel set bug

Sat, 21 Dec 2013 16:51:38 +0100

author
Malte Bayer <mbayer@neo-soft.org>
date
Sat, 21 Dec 2013 16:51:38 +0100
changeset 146
a1eb2dc83819
parent 145
80be5eb283d3
child 147
f66c5b3b3ed2

fixed unlimited fuel set bug

slotUI/slotCli.py file | annotate | diff | comparison | revisions
--- 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