drivers: modem: gsm: Reorder gsm mux logs so that it will be printed
The gsm_configure will return if it fails to perform mux_enable, therefore the disable part of the log will not be printed. Signed-off-by: Yong Cong Sin <yongcong.sin@gmail.com>
This commit is contained in:
parent
00513c90c5
commit
499412a60d
1 changed files with 2 additions and 4 deletions
|
@ -998,17 +998,15 @@ static void gsm_configure(struct k_work *work)
|
|||
|
||||
ret = mux_enable(gsm);
|
||||
if (ret == 0) {
|
||||
LOG_DBG("GSM muxing %s", "enabled");
|
||||
gsm->mux_enabled = true;
|
||||
} else {
|
||||
gsm->mux_enabled = false;
|
||||
LOG_DBG("GSM muxing %s", "disabled");
|
||||
(void)gsm_work_reschedule(&gsm->gsm_configure_work,
|
||||
K_NO_WAIT);
|
||||
return;
|
||||
}
|
||||
|
||||
LOG_DBG("GSM muxing %s", gsm->mux_enabled ? "enabled" :
|
||||
"disabled");
|
||||
|
||||
if (gsm->mux_enabled) {
|
||||
gsm->state = STATE_INIT;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue