// ReadByte reads a single byte from the RX buffer.
// If there is no data in the buffer, returns an error.
ReadByte reads a single byte from the RX buffer.
If there is no data in the buffer, returns an error.
// ReadByte reads a single byte from the RX buffer . // If there is no data in the buffer returns an error .
func (uart UART) ReadByte() (byte, error) {
	n, ok := uart.core.dc.uartReadByte()
	if !ok {
		return 0, ErrUARTEmptyBuffer
	}
	return n, nil
}
func ( uart UART ) ReadByte ( ) ( byte , error ) { n , ok := uart . core . dc . uartReadByte ( ) if ! ok { return 0 , ErrUARTEmptyBuffer } return n , nil }
ReadByte reads a single byte from the RX buffer.
ReadByte reads a single byte from the RX buffer .