better checking for UART RX overflow