From f94d112d2c9b8f5ea24f80e3dba8dd75eb8fa7c4 Mon Sep 17 00:00:00 2001 From: Christopher Vogl Date: Wed, 29 Aug 2012 17:01:09 +0200 Subject: 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. --- plugins/telit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/telit.c') diff --git a/plugins/telit.c b/plugins/telit.c index ec57f016..2afdfc80 100644 --- a/plugins/telit.c +++ b/plugins/telit.c @@ -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"); -- cgit v1.2.3