Modify serial drivers to use cfmakeraw where applicable. Affects CFontz*,

CwLnx, EyeboxOne, MtxOrb, hd44780-lis, and serialPOS.
This commit is contained in:
mmdolze
2010-01-06 17:23:02 +00:00
parent 11ebc2d783
commit 2f4c1e5185
9 changed files with 77 additions and 77 deletions
+3 -3
View File
@@ -322,9 +322,8 @@ serialPOS_init (Driver *drvthis)
tcgetattr(p->fd, &portset);
// THIS ALL COMMENTED OUT BECAUSE WE NEED TO SET TIMEOUTS
/* We use RAW mode */
#ifdef HAVE_CFMAKERAW_NOT
#ifdef HAVE_CFMAKERAW
/* The easy way */
cfmakeraw(&portset);
#else
@@ -335,9 +334,10 @@ serialPOS_init (Driver *drvthis)
portset.c_lflag &= ~( ECHO | ECHONL | ICANON | ISIG | IEXTEN );
portset.c_cflag &= ~( CSIZE | PARENB | CRTSCTS );
portset.c_cflag |= CS8 | CREAD | CLOCAL;
#endif
/* Set timeouts */
portset.c_cc[VMIN] = 1;
portset.c_cc[VTIME] = 3;
#endif
/* Set port speed */
cfsetospeed(&portset, speed);