fix previous commit
This commit is contained in:
+11
-11
@@ -210,16 +210,16 @@ CFontz633_init (Driver *drvthis, char *args)
|
|||||||
tcgetattr (fd, &portset);
|
tcgetattr (fd, &portset);
|
||||||
|
|
||||||
/* We use RAW mode */
|
/* We use RAW mode */
|
||||||
if ( usb ) {
|
if (usb) {
|
||||||
// The USB way
|
// The USB way
|
||||||
portset.c_iflag &= ~( IGNBRK | BRKINT | PARMRK | ISTRIP
|
portset.c_iflag &= ~( IGNBRK | BRKINT | PARMRK | ISTRIP
|
||||||
| INLCR | IGNCR | ICRNL | IXON );
|
| INLCR | IGNCR | ICRNL | IXON );
|
||||||
portset.c_oflag &= ~OPOST;
|
portset.c_oflag &= ~OPOST;
|
||||||
portset.c_lflag &= ~( ECHO | ECHONL | ICANON | ISIG | IEXTEN );
|
portset.c_lflag &= ~( ECHO | ECHONL | ICANON | ISIG | IEXTEN );
|
||||||
portset.c_cflag &= ~( CSIZE | PARENB | CRTSCTS );
|
portset.c_cflag &= ~( CSIZE | PARENB | CRTSCTS );
|
||||||
portset.c_cflag |= CS8 | CREAD | CLOCAL ;
|
portset.c_cflag |= CS8 | CREAD | CLOCAL ;
|
||||||
portset.c_cc[VMIN] = 0;
|
portset.c_cc[VMIN] = 0;
|
||||||
portset.c_cc[VTIME] = 0;
|
portset.c_cc[VTIME] = 0;
|
||||||
} else {
|
} else {
|
||||||
#ifdef HAVE_CFMAKERAW
|
#ifdef HAVE_CFMAKERAW
|
||||||
/* The easy way */
|
/* The easy way */
|
||||||
@@ -260,14 +260,14 @@ CFontz633_init (Driver *drvthis, char *args)
|
|||||||
|
|
||||||
/* Set display-specific stuff.. */
|
/* Set display-specific stuff.. */
|
||||||
if (reboot) {
|
if (reboot) {
|
||||||
CFontz633_reboot ();
|
CFontz633_reboot (drvthis);
|
||||||
reboot = 0;
|
reboot = 0;
|
||||||
}
|
}
|
||||||
sleep (2);
|
sleep (2);
|
||||||
CFontz633_hidecursor ();
|
CFontz633_hidecursor (drvthis);
|
||||||
|
|
||||||
CFontz633_set_contrast (drvthis, contrast);
|
CFontz633_set_contrast (drvthis, contrast);
|
||||||
CFontz633_no_live_report ();
|
CFontz633_no_live_report (drvthis);
|
||||||
CFontz633_hardware_clear (drvthis);
|
CFontz633_hardware_clear (drvthis);
|
||||||
|
|
||||||
report (RPT_DEBUG, "CFontz633_init: done\n");
|
report (RPT_DEBUG, "CFontz633_init: done\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user