mirror of git://git.sysmocom.de/ofono
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.
This commit is contained in:
parent
d36e4b7580
commit
b581f409ec
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue