slotUI/slotCli.py

changeset 146
a1eb2dc83819
parent 143
cb514887cf17
equal deleted inserted replaced
145:80be5eb283d3 146:a1eb2dc83819
225 sleep(0.5) 225 sleep(0.5)
226 self.box.progcar(slot, "brake", self.slot[slot]["profile"].getint("Settings", "Brake")) 226 self.box.progcar(slot, "brake", self.slot[slot]["profile"].getint("Settings", "Brake"))
227 sleep(0.5) 227 sleep(0.5)
228 self.box.speedlimit(slot, self.slot[slot]["limit"]) 228 self.box.speedlimit(slot, self.slot[slot]["limit"])
229 sleep(0.5) 229 sleep(0.5)
230 self.box.unlimitedfuel(slot, (self.slot[slot]["profile"].getint("Settings", "Fuel") == 0) ) 230 if self.slot[slot]["profile"].getint("Settings", "Fuel") == 0:
231 self.box.unlimitedfuel(slot, True)
232 else:
233 self.box.unlimitedfuel(slot, False)
231 sleep(0.5) 234 sleep(0.5)
232 self.cleartop() 235 self.cleartop()
233 self.box.setmode(1) 236 self.box.setmode(1)
234 237
235 def readName(self, slot): 238 def readName(self, slot):

mercurial