error count should be init. to zero

This commit is contained in:
Raphael Assenat 2015-11-02 21:52:32 -05:00
parent 76b5f386ff
commit e033576104
1 changed files with 1 additions and 1 deletions

2
main.c
View File

@ -270,7 +270,7 @@ int main(void)
gamepad_data pad_data;
unsigned char gamepad_vibrate = 0;
unsigned char state = STATE_WAIT_POLLTIME;
int error_count;
int error_count=0;
hwinit();
usart1_init();