From 02b0138a4213eff843990f96531cf31918d6dfe2 Mon Sep 17 00:00:00 2001 From: sonic74 Date: Sun, 31 Aug 2008 18:27:53 +0000 Subject: Increased the maximum bps to 230400, if defined in . git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@890 3ae390bd-cb1e-0410-b409-cd5a39f66f1f --- drv_generic_serial.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drv_generic_serial.c b/drv_generic_serial.c index 2dd1cd4..7550f88 100644 --- a/drv_generic_serial.c +++ b/drv_generic_serial.c @@ -24,7 +24,7 @@ * */ -/* +/* * * exported fuctions: * @@ -221,7 +221,7 @@ int drv_generic_serial_open(const char *section, const char *driver, const unsig return -1; } - if (cfg_number(section, "Speed", 19200, 1200, 115200, &i) < 0) + if (cfg_number(section, "Speed", 19200, 1200, 230400, &i) < 0) return -1; switch (i) { case 1200: @@ -248,6 +248,11 @@ int drv_generic_serial_open(const char *section, const char *driver, const unsig case 115200: Speed = B115200; break; +#ifdef B230400 + case 230400: + Speed = B230400; + break; +#endif default: error("%s: unsupported speed '%d' from %s", Driver, i, cfg_source()); return -1; -- cgit v1.2.3