drivers: gsm_ppp: fix modem_cmd_handler_tx_lock
Remove modem_cmd_handler_tx_lock lock when CONFIG_GSM_MUX is disabled, as modem_cmd_handler_tx_unlock is under the same conditions. Signed-off-by: GUITTER Pierrick <pguitter@silicom.fr>
This commit is contained in:
parent
3e35110f22
commit
2ef94ec479
|
@ -1199,10 +1199,11 @@ void gsm_ppp_stop(const struct device *dev)
|
|||
if (gsm->ppp_dev != NULL) {
|
||||
uart_mux_disable(gsm->ppp_dev);
|
||||
}
|
||||
}
|
||||
|
||||
if (modem_cmd_handler_tx_lock(&gsm->context.cmd_handler, GSM_CMD_LOCK_TIMEOUT) < 0) {
|
||||
LOG_WRN("Failed locking modem cmds!");
|
||||
if (modem_cmd_handler_tx_lock(&gsm->context.cmd_handler,
|
||||
GSM_CMD_LOCK_TIMEOUT) < 0) {
|
||||
LOG_WRN("Failed locking modem cmds!");
|
||||
}
|
||||
}
|
||||
|
||||
if (gsm->modem_off_cb != NULL) {
|
||||
|
|
Loading…
Reference in a new issue