| | |
| | | // dlg.DoModal();
|
| | | */
|
| | | CDialogCommSet1 dialog1;
|
| | | if (m_bCommParamSet)
|
| | | {
|
| | | dialog1.m_nComNum = m_nPort;
|
| | | dialog1.m_nBaudRate = m_nBaudRate;
|
| | | dialog1.m_Settings = m_Settings;
|
| | | dialog1.m_bOpened = m_bOpened;
|
| | | }
|
| | | INT_PTR r = dialog1.DoModal();
|
| | | //方法2的状态还原
|
| | |
|
| | |
| | | return res;
|
| | | }
|
| | |
|
| | | int KLink1::GetMode(UCHAR nDst, UCHAR nType)
|
| | | int KLink1::GetMode(UCHAR nDst, UCHAR nType, UCHAR * value)
|
| | | {
|
| | | int res = KL_OK;
|
| | | // res = ReadDataByte(nDst, 4, KLDataTypeSDT, 36, (UCHAR *)pValue);
|
| | |
| | | unsigned char nCmd;
|
| | | unsigned short nnCount = 0;
|
| | | res = ParseRplyPacket(m_RecvBuf, len2, &nCmd, &m_DstStat.StatByte, &nnCount, m_DataBuf);
|
| | | if (nnCount > 0) { *value = m_DataBuf[0]; }
|
| | | return res;
|
| | |
|
| | | }
|