mirror of
https://github.com/eddyem/stm32samples.git
synced 2026-02-28 11:54:30 +03:00
simplest stub
This commit is contained in:
@@ -77,7 +77,10 @@ int main(void){
|
||||
char *str;
|
||||
int g = usart_getline(&str);
|
||||
if(g < 0) usart_send("USART IN buffer overflow!\n");
|
||||
else if(g > 0) cmd_parser(str);
|
||||
else if(g > 0){
|
||||
const char *ans = cmd_parser(str);
|
||||
if(ans) usart_send(ans);
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user