slotUI/slotCli.py

changeset 118
9d5456cf6dad
parent 117
534e5c4b82c3
child 120
049478896193
--- 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?

mercurial