slotUI/slotCli.py

changeset 143
cb514887cf17
parent 139
7127e7082ee0
child 146
a1eb2dc83819
--- a/slotUI/slotCli.py	Sat Dec 21 13:08:43 2013 +0100
+++ b/slotUI/slotCli.py	Sat Dec 21 13:49:46 2013 +0100
@@ -227,6 +227,8 @@
         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) )
+        sleep(0.5)
         self.cleartop()
         self.box.setmode(1)
 
@@ -249,6 +251,7 @@
                 self.slot[slot]["limit"] = self.slot[slot]["profile"].getint("Settings", "Limit")
                 self.flash_car_settings(slot)
             except IOError, err:
+                # load default profile
                 self.slot[slot]["profilename"] = "default"
                 self.slot[slot]["profile"].read("profiles/default")
                 self.slot[slot]["limit"] = self.slot[slot]["profile"].getint("Settings", "Limit")

mercurial