From: Chris M. <cv...@cv...> - 2008-11-30 02:36:31
|
Modified file emc2/src/hal/classicladder/serial_linux.c Full file: <http://cvs.linuxcnc.org/cvs/emc2/src/hal/classicladder/serial_linux.c?rev=1.3> Difference: <http://cvs.linuxcnc.org/cvs/emc2/src/hal/classicladder/serial_linux.c.diff?r1=1.2;r2=1.3> Branch: TRUNK Log: revision 1.3 date: 2008/11/30 02:36:29; author: cmorley; state: Exp; lines: +2 -2 Fix compiler warning --- serial_linux.c 2008/02/26 04:33:40 1.2 +++ serial_linux.c 2008/11/30 02:36:29 1.3 @@ -102,10 +102,10 @@ } void SerialSetRTS( int State ) -{ +{ + int status; if ( PortIsOpened ) { - int status; ioctl(fd, TIOCMGET, &status); if ( State ) status |= TIOCM_RTS; |