Sat, 21 Dec 2013 16:51:38 +0100
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)