From 2be35e400a7ccf90b109d56aa20eba156f8186f9 Mon Sep 17 00:00:00 2001 From: jingli Date: Fri, 8 Jul 2022 17:38:31 +0800 Subject: [PATCH] examples/system/light_sleep: fix baudrate for uart wakeup source --- examples/system/light_sleep/main/uart_wakeup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/system/light_sleep/main/uart_wakeup.c b/examples/system/light_sleep/main/uart_wakeup.c index b7bd328e1b..31f41f912c 100644 --- a/examples/system/light_sleep/main/uart_wakeup.c +++ b/examples/system/light_sleep/main/uart_wakeup.c @@ -10,6 +10,7 @@ #include "soc/uart_pins.h" #include "driver/uart.h" #include "driver/gpio.h" +#include "sdkconfig.h" #define EXAMPLE_UART_NUM 0 /* Notice that ESP32 has to use the iomux input to configure uart as wakeup source @@ -96,7 +97,7 @@ static void uart_wakeup_task(void *arg) static esp_err_t uart_initialization(void) { uart_config_t uart_cfg = { - .baud_rate = 115200, + .baud_rate = CONFIG_ESP_CONSOLE_UART_BAUDRATE, .data_bits = UART_DATA_8_BITS, .parity = UART_PARITY_DISABLE, .stop_bits = UART_STOP_BITS_1,