From: Ryan M. Raasch <ryan.raasch@gmail.com>
To: ofono@ofono.org
Subject: [PATCH] Fixed modem options to work with capitalized variable names in modem.conf
Date: Wed, 11 Nov 2009 23:44:57 +0100 [thread overview]
Message-ID: <1257979497-17560-1-git-send-email-ryan.raasch@gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1253 bytes --]
Hello,
This patch fixes the calypso driver when setting the modemconf variables.
Regards,
Ryan
---
plugins/calypso.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/plugins/calypso.c b/plugins/calypso.c
index eba55dd..ddbec73 100644
--- a/plugins/calypso.c
+++ b/plugins/calypso.c
@@ -272,13 +272,13 @@ static void modem_initialize(struct ofono_modem *modem)
if (options == NULL)
goto error;
- g_hash_table_insert(options, "baud", "115200");
- g_hash_table_insert(options, "parity", "none");
- g_hash_table_insert(options, "stopbits", "1");
- g_hash_table_insert(options, "databits", "8");
- g_hash_table_insert(options, "xonxoff", "on");
- g_hash_table_insert(options, "local", "on");
- g_hash_table_insert(options, "rtscts", "on");
+ g_hash_table_insert(options, "Baud", "115200");
+ g_hash_table_insert(options, "Parity", "none");
+ g_hash_table_insert(options, "StopBits", "1");
+ g_hash_table_insert(options, "DataBits", "8");
+ g_hash_table_insert(options, "XonXoff", "on");
+ g_hash_table_insert(options, "Local", "on");
+ g_hash_table_insert(options, "RtsCts", "on");
io = g_at_tty_open(device, options);
g_hash_table_destroy(options);
--
1.6.4.GIT
next reply other threads:[~2009-11-11 22:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-11 22:44 Ryan M. Raasch [this message]
2009-11-11 22:51 ` [PATCH] Fixed modem options to work with capitalized variable names in modem.conf Denis Kenzior
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1257979497-17560-1-git-send-email-ryan.raasch@gmail.com \
--to=ryan.raasch@gmail.com \
--cc=ofono@ofono.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox