]> granicus.if.org Git - esp-idf/commitdiff
feat: Adjust log level about UART
authorXu Chun Guang <xuchunguang@espressif.com>
Tue, 13 Mar 2018 07:57:33 +0000 (15:57 +0800)
committerXu Chun Guang <xuchunguang@espressif.com>
Tue, 13 Mar 2018 08:01:37 +0000 (16:01 +0800)
There are too many log when UART baud is around 2Mbps if not use hard flow control.

components/driver/uart.c

index 0b5638a90f6b764eb24da6d7ec7cfed8dac9d131..a2412067a7b13fa8c04579a9fe58f127fa7d2256 100644 (file)
@@ -837,7 +837,7 @@ static void uart_rx_intr_handler_default(void *param)
                                             p_uart->rx_buffered_len + pat_idx);
                         }
                         if ((p_uart->xQueueUart != NULL) && (pdFALSE == xQueueSendFromISR(p_uart->xQueueUart, (void * )&uart_event, &HPTaskAwoken))) {
-                            ESP_EARLY_LOGW(UART_TAG, "UART event queue full");
+                            ESP_EARLY_LOGV(UART_TAG, "UART event queue full");
                         }
                     }
                     uart_event.type = UART_BUFFER_FULL;
@@ -923,7 +923,7 @@ static void uart_rx_intr_handler_default(void *param)
 
         if(uart_event.type != UART_EVENT_MAX && p_uart->xQueueUart) {
             if (pdFALSE == xQueueSendFromISR(p_uart->xQueueUart, (void * )&uart_event, &HPTaskAwoken)) {
-                ESP_EARLY_LOGW(UART_TAG, "UART event queue full");
+                ESP_EARLY_LOGV(UART_TAG, "UART event queue full");
             }
             if(HPTaskAwoken == pdTRUE) {
                 portYIELD_FROM_ISR() ;