[PATCH] When setting the serial port, the previous settings need to be preserved.
Ryan Raasch
ryan.raasch at gmail.com
Mon Oct 19 10:21:08 PDT 2009
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);
>
More information about the ofono
mailing list