# HG changeset patch # User Malte Bayer # Date 1323273632 -3600 # Node ID 4e5d389f7b8316fc8f5179892f0301824a6204f7 # Parent 018d4d63ad3beb061cd7df74416dcbbdcf8e109d jumpstart time output via interface diff -r 018d4d63ad3b -r 4e5d389f7b83 blackbox/main.c --- a/blackbox/main.c Wed Dec 07 16:50:51 2011 +0100 +++ b/blackbox/main.c Wed Dec 07 17:00:32 2011 +0100 @@ -20,6 +20,7 @@ char racestart[] PROGMEM="!RACE START\n"; +static unsigned char s[10]; static uint8_t countdown, countdown_loops; uint8_t mode = 0; // valid race modes: @@ -36,7 +37,7 @@ volatile uint8_t speedlimit[MAX_SLOTS]; volatile uint8_t fuel[MAX_SLOTS]; -volatile uint8_t jumpstart_time[MAX_SLOTS]; +volatile uint16_t jumpstart_time[MAX_SLOTS]; volatile uint16_t car0, car1; volatile uint16_t car0_new, car0_old; @@ -118,9 +119,17 @@ RS232_putc(':'); for (tmp=0;tmp #include -#define VERSION "1.1" +#define VERSION "1.2" #define COUNTDOWN_DELAY 10 // x/10 seconds