Fixed usart module

dev-sxmv
Harald Wolff 2017-11-13 13:15:37 +01:00
parent f9503e7070
commit e44da28cfe
1 changed files with 3 additions and 2 deletions

View File

@ -83,12 +83,13 @@ int usart_tx (uint8_t usart,char *b,int size){
for (n=0;n<size;n++){
for (r=0;r<10;r++){
if (usart_write( usart, *(b++)) >= 0){
break;
return ESUCCESS;
};
wait_ms(1);
};
};
return -EFAIL;
};
#endif
#endif