diff options
-rw-r--r-- | gatchat/gsmdial.c | 6 |
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) |