[Com0com-cvs] hub4com/plugins/pinmap filter.cpp,1.6,1.7
The virtual serial port driver for Windows.
Brought to you by:
vfrolov
From: Vyacheslav F. <vf...@us...> - 2008-08-25 08:08:27
|
Update of /cvsroot/com0com/hub4com/plugins/pinmap In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv24858 Modified Files: filter.cpp Log Message: Added init pin state Index: filter.cpp =================================================================== RCS file: /cvsroot/com0com/hub4com/plugins/pinmap/filter.cpp,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** filter.cpp 22 Aug 2008 16:57:11 -0000 1.6 --- filter.cpp 25 Aug 2008 08:08:22 -0000 1.7 *************** *** 20,23 **** --- 20,26 ---- * * $Log$ + * Revision 1.7 2008/08/25 08:08:22 vfrolov + * Added init pin state + * * Revision 1.6 2008/08/22 16:57:11 vfrolov * Added *************** *** 378,381 **** --- 381,393 ---- // or'e with the required mask to set pin state pOutMsg->u.val |= SO_V2O_PIN_STATE(((Filter *)hFilter)->outMask); + + State *pState = ((Filter *)hFilter)->GetState(nToPort); + + if (!pState) + return FALSE; + + // init pin state + InsertPinState(*(Filter *)hFilter, ((Filter *)hFilter)->lmInMask, pState->lmInVal, &pOutMsg); + break; } |