usart: Fix some logic errors.