forked from haraldwolff/avr-fw-modules
Fixed usart module
parent
f9503e7070
commit
e44da28cfe
|
@ -83,12 +83,13 @@ int usart_tx (uint8_t usart,char *b,int size){
|
||||||
for (n=0;n<size;n++){
|
for (n=0;n<size;n++){
|
||||||
for (r=0;r<10;r++){
|
for (r=0;r<10;r++){
|
||||||
if (usart_write( usart, *(b++)) >= 0){
|
if (usart_write( usart, *(b++)) >= 0){
|
||||||
break;
|
return ESUCCESS;
|
||||||
};
|
};
|
||||||
wait_ms(1);
|
wait_ms(1);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
return -EFAIL;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue