From c01ef27ae57774dca2ad37abda42e18bcaf04501 Mon Sep 17 00:00:00 2001 From: wangmengyang Date: Wed, 21 Jul 2021 10:54:25 +0800 Subject: [PATCH] example/controller_hci_uart_esp32c3: fixed the GPIO pin mask for input PINs of UART1 --- .../hci/controller_hci_uart_esp32c3/main/uhci_uart_demo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/bluetooth/hci/controller_hci_uart_esp32c3/main/uhci_uart_demo.c b/examples/bluetooth/hci/controller_hci_uart_esp32c3/main/uhci_uart_demo.c index 3bb3c41dab..79baa1f166 100644 --- a/examples/bluetooth/hci/controller_hci_uart_esp32c3/main/uhci_uart_demo.c +++ b/examples/bluetooth/hci/controller_hci_uart_esp32c3/main/uhci_uart_demo.c @@ -179,7 +179,7 @@ static void uart_gpio_set(void) gpio_config_t io_input_conf = { .intr_type = GPIO_PIN_INTR_DISABLE, //disable interrupt .mode = GPIO_MODE_INPUT, // input mode - .pin_bit_mask = GPIO_OUTPUT_PIN_SEL, // bit mask of the input pins + .pin_bit_mask = GPIO_INPUT_PIN_SEL, // bit mask of the input pins .pull_down_en = 0, // disable pull-down mode .pull_up_en = 0, // disable pull-down mode };