]> granicus.if.org Git - esp-idf/commitdiff
Remove redundant code line from uart.c
authorAngus Gratton <angus@espressif.com>
Wed, 30 Aug 2017 05:16:11 +0000 (15:16 +1000)
committerAngus Gratton <gus@projectgus.com>
Wed, 30 Aug 2017 07:55:00 +0000 (17:55 +1000)
Merges part of https://github.com/espressif/esp-idf/pull/650

components/driver/uart.c

index 976efda3d02a65efb1ea2f071e5b49d1e0eee806..3f0daaaaaa409c05e3ffd6f96b4ab67714e03c1e 100644 (file)
@@ -616,7 +616,6 @@ static void uart_rx_intr_handler_default(void *param)
                 uart_reg->int_clr.rxfifo_tout = 1;
                 uart_reg->int_clr.rxfifo_full = 1;
                 UART_EXIT_CRITICAL_ISR(&uart_spinlock[uart_num]);
-                uart_event.type = UART_DATA;
                 uart_event.size = rx_fifo_len;
                 //If we fail to push data to ring buffer, we will have to stash the data, and send next time.
                 //Mainly for applications that uses flow control or small ring buffer.