Don't ad-block us - support your favorite websites. We have safe, unobstrusive, robotics related ads that you actually want to see - see here for more.
0 Members and 1 Guest are viewing this topic.
char get_usb_chr(void) { char temp=uart1GetByte(); int tempa = temp; //convert to ascii line 31 while(tempa == 255) //invalid byte get a new one { delay_ms(200); temp=uart1GetByte(); int tempa = temp;//convert to ascii } rprintf("\r\n"); //create a new line on users screen return temp; }void control(void) { while(1) { char data = get_usb_chr(); //line 40 rprintf("you typed %c\r\n"); } }
control.c: In function 'get_usb_chr':control.c:31: warning: unused variable 'tempa'control.c: In function 'control':control.c:40: warning: unused variable 'data'
I also notice note that I need to plug and unplug the axon occasionally from the USB for it to be 'openable' again on my com port.
Started by paulstreats Software
Started by pomprocker Software
Started by R.E.G.I.S. Mark V Misc
Started by Admin Software