--- a/slotUI/SlotCli.py Fri Dec 09 12:32:36 2011 +0100 +++ b/slotUI/SlotCli.py Fri Dec 09 14:08:24 2011 +0100 @@ -92,6 +92,7 @@ self.scr.keypad(1) # enable special keys self.scr.nodelay(1) # disable delay on readkey + self.cleartop() self.render_slots() self.scr.refresh() @@ -136,6 +137,13 @@ if (self.slot[slot]["best"] > t) or (self.slot[slot]["best"] == 0): self.slot[slot]["best"] = t self.render_slots() + if rx[:2] == "F:": + # update fuel level + slot = int(data[1]) + f = int(data[2], 16) + f = f / 100 # fuel in percent + self.slot[slot]["fuel"] = f + self.render_slots() self.scr.refresh()