Update of /cvsroot/com0com/com0com/sys
In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv11128
Modified Files:
noise.c
Log Message:
Fixed bits in BreakError()
Index: noise.c
===================================================================
RCS file: /cvsroot/com0com/com0com/sys/noise.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** noise.c 1 Sep 2008 16:45:12 -0000 1.2
--- noise.c 2 Sep 2008 07:37:34 -0000 1.3
***************
*** 20,23 ****
--- 20,26 ----
*
* $Log$
+ * Revision 1.3 2008/09/02 07:37:34 vfrolov
+ * Fixed bits in BreakError()
+ *
* Revision 1.2 2008/09/01 16:45:12 vfrolov
* Fixed bits in BreakError()
***************
*** 55,64 ****
{
*pLsr |= 0x18; /* break interrupt indicator & framing error */
! pReadIoPort->errors |= (SERIAL_ERROR_BREAK | SERIAL_ERROR_FRAMING);
! if (pReadIoPort->lineControl.Parity == ODD_PARITY || pReadIoPort->lineControl.Parity == MARK_PARITY) {
*pLsr |= 0x04; /* parity error */
- pReadIoPort->errors |= SERIAL_ERROR_PARITY;
- }
}
/********************************************************************/
--- 58,65 ----
{
*pLsr |= 0x18; /* break interrupt indicator & framing error */
! pReadIoPort->errors |= SERIAL_ERROR_BREAK;
! if (pReadIoPort->lineControl.Parity == ODD_PARITY || pReadIoPort->lineControl.Parity == MARK_PARITY)
*pLsr |= 0x04; /* parity error */
}
/********************************************************************/
|