From 6ebb8557fd84a48a9c75b25a6d89c5b2ad7c57b2 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Wed, 2 Feb 2011 22:38:20 +0000 Subject: [PATCH] Do not timeout when writing to the modem in data mode --- src/gsm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gsm.c b/src/gsm.c index 6685e19..45b5d68 100644 --- a/src/gsm.c +++ b/src/gsm.c @@ -193,6 +193,7 @@ static struct { 304, N_("Invalid PDU mode parameter") }, { 310, N_("SIM not inserted") }, { 311, N_("SIM PIN required") }, + { 314, N_("SIM busy") }, { 320, N_("Memory failure") }, { 321, N_("Invalid memory index") }, { 322, N_("Memory full") }, @@ -2642,7 +2643,7 @@ static gboolean _on_watch_can_write(GIOChannel * source, GIOCondition condition, } if(gsm->source != 0) g_source_remove(gsm->source); - if(timeout != 0) + if(gsm->mode != GSM_MODE_DATA && timeout != 0) gsm->source = g_timeout_add(timeout, _on_timeout, gsm); } return FALSE;