mirror of
https://github.com/eddyem/stm32samples.git
synced 2026-02-28 11:54:30 +03:00
fixed some problems with USART
This commit is contained in:
@@ -124,6 +124,10 @@ int main(void){
|
||||
char *txt = NULL;
|
||||
r = usart_getline(&txt);
|
||||
txt[r] = 0;
|
||||
#ifdef EBUG
|
||||
USB_send("\n\nUSART got:\n");
|
||||
USB_send(txt); USB_send("\n\n");
|
||||
#endif
|
||||
cmd_parser(txt, 0);
|
||||
}
|
||||
if(lastB - Tms > 99){ // run `sendbuf` each 100ms
|
||||
|
||||
Reference in New Issue
Block a user