implemented IanAber's suggestion for UART FIFO fix, fixes #6