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
This commit is contained in:
David Cermak
2023-10-09 17:32:43 +02:00
parent 60d7145630
commit 1a5ba98964

View File

@ -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();