forked from espressif/esp-protocols
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:
1 parent
60d7145630
commit
1a5ba98964
1 file changed
+1
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user