projects
/
platform
/
upstream
/
ofono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b7fbef0
)
atmodem: Send DTMF commands without quotes
author
Marcel Holtmann
<marcel@holtmann.org>
Wed, 13 Oct 2010 05:25:59 +0000
(08:25 +0300)
committer
Marcel Holtmann
<marcel@holtmann.org>
Wed, 13 Oct 2010 05:25:59 +0000
(08:25 +0300)
The AT+VTS command takes a single character and should not use quotes.
drivers/atmodem/voicecall.c
patch
|
blob
|
history
diff --git
a/drivers/atmodem/voicecall.c
b/drivers/atmodem/voicecall.c
index
8b43865
..
b3c658f
100644
(file)
--- a/
drivers/atmodem/voicecall.c
+++ b/
drivers/atmodem/voicecall.c
@@
-545,16
+545,15
@@
static void at_send_dtmf(struct ofono_voicecall *vc, const char *dtmf,
if (!cbd)
goto error;
- /* strlen("+VTS=
\"T\";") = 9
+ initial AT + null */
+ /* strlen("+VTS=
T;") = 7
+ initial AT + null */
buf = g_try_new(char, len * 9 + 3);
-
if (!buf)
goto error;
- s = sprintf(buf, "AT+VTS=
\"%c\"
", dtmf[0]);
+ s = sprintf(buf, "AT+VTS=
%c
", dtmf[0]);
for (i = 1; i < len; i++)
- s += sprintf(buf + s, ";+VTS=
\"%c\"
", dtmf[i]);
+ s += sprintf(buf + s, ";+VTS=
%c
", dtmf[i]);
s = g_at_chat_send(vd->chat, buf, none_prefix,
vts_cb, cbd, g_free);