mirror of
https://github.com/netfun2000/lcd4linux.git
synced 2026-02-27 09:44:34 +08:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user