blackbox/main.c

changeset 142
a933d44a6edc
parent 140
f910ad6ed0b6
child 143
cb514887cf17
equal deleted inserted replaced
141:467e6351986e 142:a933d44a6edc
93 volatile uint8_t program_id; 93 volatile uint8_t program_id;
94 volatile uint8_t program_command; 94 volatile uint8_t program_command;
95 volatile uint8_t program_parameter; 95 volatile uint8_t program_parameter;
96 96
97 volatile uint8_t datalen = 0; 97 volatile uint8_t datalen = 0;
98 char data[10]; // 8 bytes data buffer + string termination 98 //unused: char data[10]; // 8 bytes data buffer + string termination
99 99
100 static char buffer[RS232_BUFSIZE+1]; 100 static char buffer[RS232_BUFSIZE+1];
101 static uint8_t buffer_len; 101 static uint8_t buffer_len;
102 102
103 volatile uint16_t transmit_buffer; 103 volatile uint16_t transmit_buffer;
656 656
657 int main(void) 657 int main(void)
658 { 658 {
659 uint8_t packet_index = 1; 659 uint8_t packet_index = 1;
660 660
661 switches.fuel_enabled = 1; 661 switches.fuel_enabled = 0;
662 switches.pitlane_finishline = 0; 662 switches.pitlane_finishline = 0;
663 switches.liveinfo = 0; 663 switches.liveinfo = 0;
664 664
665 init_hardware(); 665 init_hardware();
666 reset_vars(); 666 reset_vars();

mercurial