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
This commit is contained in:
sonic74
2008-08-31 18:27:53 +00:00
parent 9e0932674b
commit 02b0138a42
+7 -2
View File
@@ -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;