Open Source Telephony
 help / color / mirror / Atom feed
From: Ryan Raasch <ryan.raasch@gmail.com>
To: ofono@ofono.org
Subject: Re: [PATCH] When setting the serial port, the previous settings need to    be preserved.
Date: Mon, 19 Oct 2009 19:21:08 +0200	[thread overview]
Message-ID: <4ADCA004.7040302@gmail.com> (raw)
In-Reply-To: <632f5f310910191018k2e122a0bi915e7f6ffbfe5cd6@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 667 bytes --]

Oops. Sorry for duplicate email. I didn't get it in my inbox.

Ryan

Ryan Raasch wrote:
> When setting the serial terminal before starting the daemon, this will
> prevent the overwriting of settings.
> 
> Ryan
> 
> ---
>  gatchat/gattty.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/gatchat/gattty.c b/gatchat/gattty.c
> index 63d26d4..ed0fadf 100644
> --- a/gatchat/gattty.c
> +++ b/gatchat/gattty.c
> @@ -220,6 +220,7 @@ static int open_device(const char *tty, GHashTable *options)
>  	if (fd < 0)
>  		return -1;
> 
> +	tcgetattr(fd,&ti);
>  	tcflush(fd, TCIOFLUSH);
>  	tcsetattr(fd, TCSANOW, &ti);
> 

  reply	other threads:[~2009-10-19 17:21 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-19 17:18 [PATCH] When setting the serial port, the previous settings need to be preserved Ryan Raasch
2009-10-19 17:21 ` Ryan Raasch [this message]
  -- strict thread matches above, loose matches on Subject: below --
2009-10-19 14:28 Ryan Raasch
2009-10-19 17:32 ` Denis Kenzior
2009-10-20  7:43   ` Ryan Raasch
2009-10-20  9:10     ` Ryan Raasch
2009-10-20 15:13       ` Denis Kenzior
2009-10-20 15:51         ` Ryan Raasch
2009-10-20 15:36           ` Denis Kenzior
2009-10-21  8:43             ` Ryan Raasch
2009-10-22  0:09               ` 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=4ADCA004.7040302@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