diff --git a/components/esp_modem/include/vfs_resource/vfs_create.hpp b/components/esp_modem/include/vfs_resource/vfs_create.hpp index 3f1a80a2c..7b075143b 100644 --- a/components/esp_modem/include/vfs_resource/vfs_create.hpp +++ b/components/esp_modem/include/vfs_resource/vfs_create.hpp @@ -14,7 +14,7 @@ .stop_bits = UART_STOP_BITS_1, \ .parity = UART_PARITY_DISABLE, \ .flow_control = ESP_MODEM_FLOW_CONTROL_NONE,\ - .source_clk = UART_SCLK_APB, \ + .source_clk = ESP_MODEM_DEFAULT_UART_CLK, \ .baud_rate = 115200, \ .tx_io_num = 25, \ .rx_io_num = 26, \ diff --git a/components/esp_modem/src/esp_modem_term_fs.cpp b/components/esp_modem/src/esp_modem_term_fs.cpp index fde9c40ce..1bbc06a46 100644 --- a/components/esp_modem/src/esp_modem_term_fs.cpp +++ b/components/esp_modem/src/esp_modem_term_fs.cpp @@ -122,9 +122,7 @@ void FdTerminal::task() } else { if (FD_ISSET(f.fd, &rfds)) { if (on_read_priv) { - if (on_read_priv(nullptr, 0)) { - on_read_priv = nullptr; - } + on_read_priv(nullptr, 0); } } }