We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df4b4ec commit 5580383Copy full SHA for 5580383
components/serial_handler/serial_handler.c
@@ -14,6 +14,7 @@
14
15
#include "serial_handler.h"
16
#include "esp_log.h"
17
+#include "esp_check.h"
18
#include "freertos/FreeRTOS.h"
19
#include "freertos/task.h"
20
#include "freertos/semphr.h"
@@ -155,6 +156,9 @@ static esp_err_t init_uart_transport(void)
155
156
};
157
158
if (loader_port_esp32_init(&serial_conf) == ESP_LOADER_SUCCESS) {
159
+ // Enable pull up for RXD to avoid floating input
160
+ ESP_RETURN_ON_ERROR(gpio_pullup_en(GPIO_RXD), TAG, "Failed to enable pull up for RXD");
161
+
162
ESP_LOGI(TAG, "UART have been initialized");
163
164
// Start UART event task
0 commit comments