From 56a3dd96bae7bc308edb5c2d9405154ca4fddf4b Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Wed, 28 Oct 2009 16:38:55 -0500 Subject: [PATCH] Cleanup previous patch and update docs --- gatchat/gattty.c | 2 +- gatchat/gattty.h | 15 ++++++++------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/gatchat/gattty.c b/gatchat/gattty.c index 64dd8ab..7d665e1 100644 --- a/gatchat/gattty.c +++ b/gatchat/gattty.c @@ -218,7 +218,7 @@ static int open_device(const char *tty, GHashTable *options) ok = set_parity(value, &ti); else if (g_str_equal(key, "XonXoff")) ok = set_xonxoff(value, &ti); - else if (g_str_equal(key, "Rtscts")) + else if (g_str_equal(key, "RtsCts")) ok = set_rtscts(value, &ti); else if (g_str_equal(key, "Local")) ok = set_local(value, &ti); diff --git a/gatchat/gattty.h b/gatchat/gattty.h index 861c4d7..c8e0c8f 100644 --- a/gatchat/gattty.h +++ b/gatchat/gattty.h @@ -32,13 +32,14 @@ extern "C" { * * The following keys / values are recognized (all strings) * - * "baud" - "300", "600", etc - * "stopbits" - "1", "2" - * "databits" - "7", "8" - * "parity" - "none", "odd", "even" - * "xonxoff" - "on", "off" - * "rtscts" - "on", "off" - * "local" - "on", "off" + * "Baud" - "300", "600", etc + * "Stopbits" - "1", "2" + * "Databits" - "7", "8" + * "Parity" - "none", "odd", "even" + * "XonXoff" - "on", "off" + * "RtsCts" - "on", "off" + * "Local" - "on", "off" + * "Read" - "on, "off" */ GIOChannel *g_at_tty_open(const char *tty, GHashTable *options); -- 2.7.4