From e44da28cfeee234df595bcd148297a0e2b719e12 Mon Sep 17 00:00:00 2001 From: Harald Wolff Date: Mon, 13 Nov 2017 13:15:37 +0100 Subject: [PATCH] Fixed usart module --- core/src/usart.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/src/usart.c b/core/src/usart.c index af4bcb2..2a6bcb3 100644 --- a/core/src/usart.c +++ b/core/src/usart.c @@ -83,12 +83,13 @@ int usart_tx (uint8_t usart,char *b,int size){ for (n=0;n= 0){ - break; + return ESUCCESS; }; wait_ms(1); }; }; + return -EFAIL; }; -#endif \ No newline at end of file +#endif