Skip to content

Commit

Permalink
Merge pull request #658 from Ant2000/master
Browse files Browse the repository at this point in the history
[modem] Minor change to exit_cmux behavior
  • Loading branch information
david-cermak authored Sep 18, 2024
2 parents e926a2c + 0e0cbd6 commit 6f90d85
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions components/esp_modem/src/esp_modem_dte.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,10 @@ bool DTE::exit_cmux()
if (!cmux_term) {
return false;
}
if (!cmux_term->deinit()) {
return false;
}
const bool success = cmux_term->deinit();
exit_cmux_internal();
cmux_term.reset();
return true;
return success;
}

void DTE::exit_cmux_internal()
Expand Down

0 comments on commit 6f90d85

Please sign in to comment.