Update of /cvsroot/com0com/hub4com
In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv22841
Modified Files:
comport.cpp
Log Message:
Fixed LostReport()
Index: comport.cpp
===================================================================
RCS file: /cvsroot/com0com/hub4com/comport.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** comport.cpp 6 Feb 2007 11:53:33 -0000 1.3
--- comport.cpp 16 Apr 2007 07:33:38 -0000 1.4
***************
*** 20,23 ****
--- 20,26 ----
*
* $Log$
+ * Revision 1.4 2007/04/16 07:33:38 vfrolov
+ * Fixed LostReport()
+ *
* Revision 1.3 2007/02/06 11:53:33 vfrolov
* Added options --odsr, --ox, --ix and --idsr
***************
*** 200,207 ****
cout << "Error " << name << ":";
! if (errors & CE_RXOVER) { cout << " RXOVER"; }
! if (errors & CE_OVERRUN) { cout << " OVERRUN"; }
! if (errors & CE_RXPARITY) { cout << " RXPARITY"; }
! if (errors & CE_FRAME) { cout << " FRAME"; }
#define IOCTL_SERIAL_GET_STATS CTL_CODE(FILE_DEVICE_SERIAL_PORT,35,METHOD_BUFFERED,FILE_ANY_ACCESS)
--- 203,213 ----
cout << "Error " << name << ":";
! if (errors & CE_RXOVER) { cout << " RXOVER"; errors &= ~CE_RXOVER; }
! if (errors & CE_OVERRUN) { cout << " OVERRUN"; errors &= ~CE_OVERRUN; }
! if (errors & CE_RXPARITY) { cout << " RXPARITY"; errors &= ~CE_RXPARITY; }
! if (errors & CE_FRAME) { cout << " FRAME"; errors &= ~CE_FRAME; }
! if (errors & CE_BREAK) { cout << " BREAK"; errors &= ~CE_BREAK; }
! if (errors & CE_TXFULL) { cout << " TXFULL"; errors &= ~CE_TXFULL; }
! if (errors) { cout << " 0x" << hex << errors; }
#define IOCTL_SERIAL_GET_STATS CTL_CODE(FILE_DEVICE_SERIAL_PORT,35,METHOD_BUFFERED,FILE_ANY_ACCESS)
|