[uart_bif.c] Get rid of repeated frames.