summaryrefslogtreecommitdiffstats
path: root/gatchat/gsmdial.c
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2011-02-28 12:13:01 -0600
committerDenis Kenzior <denkenz@gmail.com>2011-02-28 16:13:56 -0600
commit2446d1aa432479bb1756471f88d1969f43673a90 (patch)
treea8c636092b94879c427528ebfd8b6615a607fa6b /gatchat/gsmdial.c
parent57f32ff899c1c9f386e1b8ccb6517673d435a837 (diff)
downloadofono-2446d1aa432479bb1756471f88d1969f43673a90.tar.bz2
gsmdial: register notification before resuming
Diffstat (limited to 'gatchat/gsmdial.c')
-rw-r--r--gatchat/gsmdial.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gatchat/gsmdial.c b/gatchat/gsmdial.c
index c2bcf735..a10e7cb4 100644
--- a/gatchat/gsmdial.c
+++ b/gatchat/gsmdial.c
@@ -283,10 +283,14 @@ static void ppp_disconnect(GAtPPPDisconnectReason reason, gpointer user_data)
g_at_ppp_unref(ppp);
ppp = NULL;
- g_at_chat_resume(modem);
+ if (option_modem == NULL)
+ g_at_chat_set_debug(modem, gsmdial_debug, "");
+ else
+ g_at_chat_set_debug(modem, gsmdial_debug, "Modem");
g_at_chat_register(modem, "NO CARRIER", no_carrier_notify,
FALSE, NULL, NULL);
+ g_at_chat_resume(modem);
}
static void connect_cb(gboolean ok, GAtResult *result, gpointer user_data)