From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: [PATCH] telit: set baud rate to 115200
Date: Mon, 17 Dec 2012 09:32:01 -0600 [thread overview]
Message-ID: <50CF3AF1.2060003@gmail.com> (raw)
In-Reply-To: <1355739357-24794-1-git-send-email-christopher.vogl@hale.at>
[-- Attachment #1: Type: text/plain, Size: 1100 bytes --]
Hi Christopher,
On 12/17/2012 04:15 AM, Christopher Vogl wrote:
> Telit HE910 needs the baud rate to be set.
> ---
> plugins/telit.c | 9 ++++++++-
> 1 files changed, 8 insertions(+), 1 deletions(-)
>
> diff --git a/plugins/telit.c b/plugins/telit.c
> index fe2ccd6..64f763a 100644
> --- a/plugins/telit.c
> +++ b/plugins/telit.c
> @@ -186,6 +186,7 @@ static GAtChat *open_device(struct ofono_modem *modem,
> GAtSyntax *syntax;
> GIOChannel *channel;
> GAtChat *chat;
> + GHashTable *options;
>
> device = ofono_modem_get_string(modem, key);
> if (device == NULL)
> @@ -193,7 +194,13 @@ static GAtChat *open_device(struct ofono_modem *modem,
>
> DBG("%s %s", key, device);
>
> - channel = g_at_tty_open(device, NULL);
> + options = g_hash_table_new(g_str_hash, g_str_equal);
> + if (options == NULL)
> + return NULL;
> +
> + g_hash_table_insert(options, "Baud", "115200");
> +
> + channel = g_at_tty_open(device, options);
Are you leaking the hash table object here?
> if (channel == NULL)
> return NULL;
>
Regards,
-Denis
next prev parent reply other threads:[~2012-12-17 15:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-17 10:15 [PATCH] telit: set baud rate to 115200 Christopher Vogl
2012-12-17 15:32 ` Denis Kenzior [this message]
2012-12-17 16:07 ` Christopher Vogl
2012-12-17 16:18 ` 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=50CF3AF1.2060003@gmail.com \
--to=denkenz@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