mirror of
https://github.com/eddyem/stm32samples.git
synced 2026-02-28 11:54:30 +03:00
Seems like all U[S]ARTs works well. Tested on speeds up to 2Mbaud (as CH340 can).
This commit is contained in:
@@ -95,8 +95,7 @@ static const char* erpg(const char *str){
|
||||
static void sendoverU(uint8_t ifno, char *str){
|
||||
int len = strlen(str);
|
||||
CFGWR("try to send "); CFGWRn(str);
|
||||
str[len] = '\n';
|
||||
len = usart_send(ifno, (const uint8_t*)str, len+1);
|
||||
len = usart_send(ifno, (const uint8_t*)str, len);
|
||||
CFGWR("sent "); CFGWR(i2str(len)); CFGWR("bytes\n");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user