summaryrefslogtreecommitdiff
path: root/gatchat/gattty.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-10-22 10:28:26 +0900
committerMarcel Holtmann <marcel@holtmann.org>2009-10-22 10:28:26 +0900
commit33bd0f2540ad0696b256d9ddcb2d4d4e82789ba0 (patch)
tree4ce1f455dd078b4d255bd05d6b201b67bbfbbdf5 /gatchat/gattty.c
parenta5925f9f290c89f1c4070e0dc65e30104d7e7652 (diff)
downloadconnman-33bd0f2540ad0696b256d9ddcb2d4d4e82789ba0.tar.gz
connman-33bd0f2540ad0696b256d9ddcb2d4d4e82789ba0.tar.bz2
connman-33bd0f2540ad0696b256d9ddcb2d4d4e82789ba0.zip
Update and sync GAtChat from oFono
Diffstat (limited to 'gatchat/gattty.c')
-rw-r--r--gatchat/gattty.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gatchat/gattty.c b/gatchat/gattty.c
index 30d94446..f18eca4e 100644
--- a/gatchat/gattty.c
+++ b/gatchat/gattty.c
@@ -72,14 +72,22 @@ static gboolean set_baud(const char *baud, struct termios *ti)
speed = B1500000;
else if (g_str_equal(baud, "2000000"))
speed = B2000000;
+#ifdef B2500000
else if (g_str_equal(baud, "2500000"))
speed = B2500000;
+#endif
+#ifdef B3000000
else if (g_str_equal(baud, "3000000"))
speed = B3000000;
+#endif
+#ifdef B3500000
else if (g_str_equal(baud, "3500000"))
speed = B3500000;
+#endif
+#ifdef B4000000
else if (g_str_equal(baud, "4000000"))
speed = B4000000;
+#endif
else
return FALSE;