Skip to content

Commit 1a5ba98

Browse files
committed
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 cb6e03a when refactoring DTE callbacks. Closes #352
1 parent 60d7145 commit 1a5ba98

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

components/esp_modem/src/esp_modem_dte.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@ void DTE::on_read(got_line_cb on_read_cb)
313313
if (on_read_cb == nullptr) {
314314
primary_term->set_read_cb(nullptr);
315315
internal_lock.unlock();
316+
set_command_callbacks();
316317
return;
317318
}
318319
internal_lock.lock();

0 commit comments

Comments
 (0)