Fixed issue #2 for buffered input on usart1