Skip to content

Commit 001397d

Browse files
committed
source
1 parent b070676 commit 001397d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

AVR_USART_lib.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,12 @@ void USART_Transmit( uint8_t ui8Data )
5151

5252
int USART_putchar_printf( char var, FILE *stream )
5353
{
54+
if ( var == '\n' )
55+
{
56+
USART_Transmit('\r') ;
57+
}
58+
59+
5460
USART_Transmit( (uint8_t) var ) ;
5561

5662
return 0 ;

0 commit comments

Comments
 (0)