drivers: modem: gsm: Reset attached flag on stop
The 'attached' flag should be reset on gsm_ppp_stop, or else some part of the gsm_finalize_connection won't be executed during the next gsm_ppp_start. Signed-off-by: Yong Cong Sin <yongcong.sin@gmail.com>
This commit is contained in:
parent
db31558c7d
commit
cd216b17e0
1 changed files with 2 additions and 0 deletions
|
@ -1061,6 +1061,8 @@ void gsm_ppp_stop(const struct device *dev)
|
|||
if (gsm->modem_off_cb) {
|
||||
gsm->modem_off_cb(gsm->dev, gsm->user_data);
|
||||
}
|
||||
|
||||
gsm->attached = false;
|
||||
}
|
||||
|
||||
void gsm_ppp_register_modem_power_callback(const struct device *dev,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue