summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gatchat/gattty.c2
-rw-r--r--gatchat/gattty.h15
2 files changed, 9 insertions, 8 deletions
diff --git a/gatchat/gattty.c b/gatchat/gattty.c
index 64dd8abb..7d665e1d 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 861c4d71..c8e0c8fa 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);