# HG changeset patch # User Malte Bayer # Date 1355608530 -3600 # Node ID ec623e5fcbca78731f560365ea926de9e0990644 # Parent 8344d8d38c4fac6ac6e03cbcf27ecdc28438aea3 firmware fix: only fuel to 100% once in pitlane diff -r 8344d8d38c4f -r ec623e5fcbca blackbox/main.c --- a/blackbox/main.c Sat Dec 15 17:12:40 2012 +0100 +++ b/blackbox/main.c Sat Dec 15 22:55:30 2012 +0100 @@ -423,7 +423,10 @@ } else if (slot[controller].canrefuel) { // increase fuel by 5%/sec, this equals by adding 50 to the counter slot[controller].fuel += 50; - if (slot[controller].fuel > FUEL_FULL) slot[controller].fuel = FUEL_FULL; + if (slot[controller].fuel > FUEL_FULL) { + slot[controller].fuel = FUEL_FULL; + slot[controller].canrefuel = 0; + } } return 1; } diff -r 8344d8d38c4f -r ec623e5fcbca slotUI/slotCli.py --- a/slotUI/slotCli.py Sat Dec 15 17:12:40 2012 +0100 +++ b/slotUI/slotCli.py Sat Dec 15 22:55:30 2012 +0100 @@ -475,8 +475,8 @@ # is there something in the rx buffer? rx = self.box.readline() if (rx != "") or self.test: - self.scr.addstr(17,0, - "Last RX: %19s" % rx, curses.color_pair(2)) + self.scr.addstr(17,3, + "RX: %19s" % rx, curses.color_pair(2)) self.scr.redrawwin() self.scr.refresh() # we have received something