summaryrefslogtreecommitdiffstats
path: root/src/stk.c
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2012-11-19 10:42:24 -0600
committerDenis Kenzior <denkenz@gmail.com>2012-11-22 06:50:08 -0600
commitb581f409ec50dcac0c3e0f41f8c00580013eb2fd (patch)
tree4f39c09a7c2ae187711dda796388c12e967adea9 /src/stk.c
parentd36e4b7580a5096d6e421368a662f8335e179245 (diff)
downloadofono-b581f409ec50dcac0c3e0f41f8c00580013eb2fd.tar.bz2
stk: Use a shorter timeout for DisplayText
For any commands that are tagged as wait-for-user to clear, we should use the shorter timeout. The test system expects 25 to 35 seconds.
Diffstat (limited to 'src/stk.c')
-rw-r--r--src/stk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stk.c b/src/stk.c
index daa9fa82..99fededc 100644
--- a/src/stk.c
+++ b/src/stk.c
@@ -1380,7 +1380,7 @@ static gboolean handle_command_display_text(const struct stk_command *cmd,
}
if (qualifier & (1 << 7))
- timeout = stk->timeout * 1000;
+ timeout = stk->short_timeout * 1000;
if (dt->duration.interval)
timeout = duration_to_msecs(&dt->duration);
@@ -3151,7 +3151,7 @@ void ofono_stk_register(struct ofono_stk *stk)
__ofono_atom_register(stk->atom, stk_unregister);
stk->timeout = 180; /* 3 minutes */
- stk->short_timeout = 20; /* 20 seconds */
+ stk->short_timeout = 25; /* 25 seconds */
stk->envelope_q = g_queue_new();
}