From 017b4d3955822fd046649afaa7771896a1b8d0b2 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sat, 10 Apr 2010 09:33:45 +0200 Subject: [PATCH] Check for PIN status to see details in debug output --- gatchat/gsmdial.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gatchat/gsmdial.c b/gatchat/gsmdial.c index 2446e18..cc32464 100644 --- a/gatchat/gsmdial.c +++ b/gatchat/gsmdial.c @@ -651,6 +651,7 @@ int main(int argc, char **argv) event_loop = g_main_loop_new(NULL, FALSE); g_at_chat_send(control, "ATE0Q0V1", NULL, NULL, NULL, NULL); + g_at_chat_send(control, "AT+CPIN?", NULL, NULL, NULL, NULL); g_at_chat_send(control, "AT+CFUN?", cfun_prefix, check_mode, NULL, NULL); -- 2.7.4