mirror of git://git.sysmocom.de/ofono
telit: Avoid resetting the SIM
Avoid a reset when switching between online and offline (airplane) mode in telit_set_online(). +CFUN accepts a second parameter (0), which disables a reset: AT+CFUN=x,0.
This commit is contained in:
parent
c1cea66a5e
commit
f94d112d2c
|
@ -608,7 +608,7 @@ static void telit_set_online(struct ofono_modem *modem, ofono_bool_t online,
|
|||
{
|
||||
struct telit_data *data = ofono_modem_get_data(modem);
|
||||
struct cb_data *cbd = cb_data_new(cb, user_data);
|
||||
char const *command = online ? "AT+CFUN=1" : "AT+CFUN=4";
|
||||
char const *command = online ? "AT+CFUN=1,0" : "AT+CFUN=4,0";
|
||||
|
||||
DBG("modem %p %s", modem, online ? "online" : "offline");
|
||||
|
||||
|
|
Loading…
Reference in New Issue