From 3b9321aaef442baedbaf88357aecc0046ec72d7c Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Wed, 17 Nov 2010 14:58:20 +0000 Subject: [PATCH] No longer suspend the phone when starting the application --- src/gsm.c | 1 + src/phone.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gsm.c b/src/gsm.c index e9d2de7..ec31c34 100644 --- a/src/gsm.c +++ b/src/gsm.c @@ -2263,6 +2263,7 @@ static gboolean _reset_settle(gpointer data) GSM * gsm = data; gsm_modem_reset(gsm->modem); + /* XXX may be send multiple times until it really is online */ _gsm_event_send(gsm, GSM_EVENT_TYPE_ONLINE); return TRUE; } diff --git a/src/phone.c b/src/phone.c index 6571183..d514372 100644 --- a/src/phone.c +++ b/src/phone.c @@ -417,7 +417,7 @@ static gboolean _new_idle(gpointer data) if((plugins = config_get(phone->config, NULL, "plugins")) != NULL) _idle_load_plugins(phone, plugins); phone->source = 0; - gsm_reset(phone->gsm, 0); + gsm_start(phone->gsm, 0); return FALSE; }