From: Martin H. <mh...@us...> - 2005-04-29 14:44:37
|
Update of /cvsroot/opengtoolkit/serial/c_source In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16509/c_source Modified Files: lvserial.h Log Message: Improved error handling if one of the OS functions for the serial port has failed. In this case we call the ClearCommError function to get additional information. So we are now able to decide whether the function has failed because there was an I/O error or an invalid parameter. Index: lvserial.h =================================================================== RCS file: /cvsroot/opengtoolkit/serial/c_source/lvserial.h,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** lvserial.h 12 Apr 2005 08:31:37 -0000 1.4 --- lvserial.h 29 Apr 2005 14:44:27 -0000 1.5 *************** *** 195,198 **** --- 195,204 ---- #define COMM_ERR_TXBUFFERFULL -65080 #define COMM_ERR_WRONGECHO -65081 + #define COMM_ERR_BREAK -65082 + #define COMM_ERR_DNS -65083 + #define COMM_ERR_IOE -65084 + #define COMM_ERR_MODE -65085 + #define COMM_ERR_OOP -65086 + #define COMM_ERR_PTO -65087 #ifndef LVSERIAL_CONST_ONLY |