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
2024-11-28 21:34:15 +01:00
parent 849fe7b6cb
commit 8b6ea3311a
4 changed files with 20 additions and 5 deletions

View File

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