# HG changeset patch # User Malte Bayer # Date 1355583287 -3600 # Node ID 9d5456cf6dadcc5bb24384d69a7efd4f0a3626f7 # Parent 534e5c4b82c3df86e460ee9dc12806617542f40f new hotkey 'f' to toggle freerun mode diff -r 534e5c4b82c3 -r 9d5456cf6dad slotUI/slotCli.py --- a/slotUI/slotCli.py Sat Dec 15 15:51:08 2012 +0100 +++ b/slotUI/slotCli.py Sat Dec 15 15:54:47 2012 +0100 @@ -428,7 +428,9 @@ key = self.scr.getch() if key == ord('q'): break elif key == ord(' '): self.box.query("+") # panic / resume - elif key == 10: self.box.query("#") # remote start button press + elif key == 10: + self.freerun = False + self.box.query("#") # remote start button press elif key == ord('1'): self.readName(0) elif key == ord('2'): self.readName(1) @@ -465,6 +467,9 @@ elif key == ord('/'): for slot in range(5): self.flash_car_settings(slot) + elif key == ord('f'): + # set freerun mode manually (abort race) + self.freerun = not self.freerun # is there something in the rx buffer?