From 1a5ba9896434bbb114d8b78b2eefe5231a54c199 Mon Sep 17 00:00:00 2001 From: David Cermak Date: Mon, 9 Oct 2023 17:32:43 +0200 Subject: [PATCH] fix(modem): Fix AT client example to use custom AT processing Need the callback reset upon removal of our custom AT command processing. This issue has been introduced in cb6e03ac when refactoring DTE callbacks. Closes https://github.com/espressif/esp-protocols/issues/352 --- components/esp_modem/src/esp_modem_dte.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/components/esp_modem/src/esp_modem_dte.cpp b/components/esp_modem/src/esp_modem_dte.cpp index 64bd510a3..5aad0e964 100644 --- a/components/esp_modem/src/esp_modem_dte.cpp +++ b/components/esp_modem/src/esp_modem_dte.cpp @@ -313,6 +313,7 @@ void DTE::on_read(got_line_cb on_read_cb) if (on_read_cb == nullptr) { primary_term->set_read_cb(nullptr); internal_lock.unlock(); + set_command_callbacks(); return; } internal_lock.lock();