mirror of git://git.sysmocom.de/ofono
gsmdial: register notification before resuming
This commit is contained in:
parent
57f32ff899
commit
2446d1aa43
|
@ -283,10 +283,14 @@ static void ppp_disconnect(GAtPPPDisconnectReason reason, gpointer user_data)
|
||||||
g_at_ppp_unref(ppp);
|
g_at_ppp_unref(ppp);
|
||||||
ppp = NULL;
|
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,
|
g_at_chat_register(modem, "NO CARRIER", no_carrier_notify,
|
||||||
FALSE, NULL, NULL);
|
FALSE, NULL, NULL);
|
||||||
|
g_at_chat_resume(modem);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void connect_cb(gboolean ok, GAtResult *result, gpointer user_data)
|
static void connect_cb(gboolean ok, GAtResult *result, gpointer user_data)
|
||||||
|
|
Loading…
Reference in New Issue