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:
Christopher Vogl 2012-08-29 17:01:09 +02:00 committed by Denis Kenzior
parent c1cea66a5e
commit f94d112d2c
1 changed files with 1 additions and 1 deletions

View File

@ -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");