diff options
author | sonic74 <sonic74@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2008-08-31 18:27:53 +0000 |
---|---|---|
committer | sonic74 <sonic74@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2008-08-31 18:27:53 +0000 |
commit | 02b0138a4213eff843990f96531cf31918d6dfe2 (patch) | |
tree | 7a17885217e3848321ea52af9c9730094c694ff2 | |
parent | 9e0932674b6e85098e3902f4c3083e80c9590be5 (diff) | |
download | lcd4linux-02b0138a4213eff843990f96531cf31918d6dfe2.tar.gz |
Increased the maximum bps to 230400, if defined in <termios.h>.
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@890 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to '')
-rw-r--r-- | drv_generic_serial.c | 9 |
1 files 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; |