mbm: Fix SIM not inserted detection

This commit is contained in:
Denis Kenzior 2012-11-07 07:59:57 -06:00
parent 4853306993
commit 2bc5871d52
1 changed files with 3 additions and 1 deletions

View File

@ -137,7 +137,9 @@ static void sim_state_cb(gboolean present, gpointer user_data)
at_util_sim_state_query_free(data->sim_state_query);
data->sim_state_query = NULL;
data->flags |= MBM_FLAG_HAVE_SIM;
if (present)
data->flags |= MBM_FLAG_HAVE_SIM;
ofono_modem_set_powered(modem, TRUE);
}