fix(modem): Refine mode switch data->command

* netif.stop() moved after setting the transition callback
* send PPP escape sequence if enabled before waiting for transition to
complete
* add newline character before sync() command (after the "+++")

Closes https://github.com/espressif/esp-protocols/issues/692
This commit is contained in:
David Cermak committed 2024-12-04 14:39:01 +01:00
1 parent 849fe7b6cb
commit 8b6ea3311a
4 files changed
+20 -5

No files matched your search

@@ -52,7 +52,6 @@ void Netif::start()
void Netif::stop()
{
ppp_dte->set_read_cb(nullptr);
signal.clear(PPP_STARTED);
}