Update of /cvsroot/com0com/hub4com/plugins/serial
In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv12850/serial
Modified Files:
comport.cpp
Log Message:
Added masking to HUB_MSG_TYPE_MODEM_STATUS and HUB_MSG_TYPE_LINE_STATUS
Index: comport.cpp
===================================================================
RCS file: /cvsroot/com0com/hub4com/plugins/serial/comport.cpp,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** comport.cpp 20 Aug 2008 14:30:19 -0000 1.7
--- comport.cpp 22 Aug 2008 12:45:34 -0000 1.8
***************
*** 20,23 ****
--- 20,26 ----
*
* $Log$
+ * Revision 1.8 2008/08/22 12:45:34 vfrolov
+ * Added masking to HUB_MSG_TYPE_MODEM_STATUS and HUB_MSG_TYPE_LINE_STATUS
+ *
* Revision 1.7 2008/08/20 14:30:19 vfrolov
* Redesigned serial port options
***************
*** 403,407 ****
return FALSE;
! WORD mask = SPS_MASK2PIN(pMsg->u.val);
cout << name << " SET_PIN_STATE 0x" << hex << pMsg->u.val << dec << " SET["
--- 406,410 ----
return FALSE;
! WORD mask = MASK2VAL(pMsg->u.val);
cout << name << " SET_PIN_STATE 0x" << hex << pMsg->u.val << dec << " SET["
***************
*** 569,573 ****
msg.type = HUB_MSG_TYPE_MODEM_STATUS;
! msg.u.val = stat;
pOnRead(hHub, hMasterPort, &msg);
--- 572,576 ----
msg.type = HUB_MSG_TYPE_MODEM_STATUS;
! msg.u.val = ((DWORD)(BYTE)stat | VAL2MASK(MODEM_STATUS_CTS|MODEM_STATUS_DSR|MODEM_STATUS_DCD|MODEM_STATUS_RI));
pOnRead(hHub, hMasterPort, &msg);
|