diff options
author | Christopher Vogl <christopher.vogl@hale.at> | 2012-08-29 17:01:09 +0200 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2012-08-30 09:45:27 -0500 |
commit | f94d112d2c9b8f5ea24f80e3dba8dd75eb8fa7c4 (patch) | |
tree | 76b88127131aa6922cd5adacfd2a6182b1050dc9 /plugins/telit.c | |
parent | c1cea66a5eaf008376decb9d54b5a6f22189fce4 (diff) | |
download | ofono-f94d112d2c9b8f5ea24f80e3dba8dd75eb8fa7c4.tar.bz2 |
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.
Diffstat (limited to 'plugins/telit.c')
-rw-r--r-- | plugins/telit.c | 2 |
1 files changed, 1 insertions, 1 deletions
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"); |