|
@@ -154,7 +154,7 @@ int TCLCommand::parse_cmds_from_file(const TCHAR* file_name, std::vector<Command
|
|
|
cp.nOption = CMDOPT_Set;
|
|
|
|
|
|
parse_pair_key(value, multicode, _T("returnParam"));
|
|
|
- cp.bMulticode = !_tcsicmp(value.c_str(), _T("true")) ? true : false;
|
|
|
+ cp.returnParam = !_tcsicmp(value.c_str(), _T("true")) ? true : false;
|
|
|
|
|
|
parse_pair_key(value, read_wait_time, _T("readWaitTime"));
|
|
|
cp.read_wait_time = pares_time_value(value.c_str());
|
|
@@ -249,7 +249,7 @@ void TCLCommand::parse_cmds_from_string(std::string str, std::vector<CommandPara
|
|
|
cp.nOption = CMDOPT_Set;
|
|
|
|
|
|
parse_pair_key(value, multicode, _T("returnParam"));
|
|
|
- cp.bMulticode = !_tcsicmp(value.c_str(), _T("true")) ? true : false;
|
|
|
+ cp.returnParam = !_tcsicmp(value.c_str(), _T("true")) ? true : false;
|
|
|
|
|
|
parse_pair_key(value, read_wait_time, _T("readWaitTime"));
|
|
|
cp.read_wait_time = pares_time_value(value.c_str());
|
|
@@ -395,7 +395,7 @@ bool TCLCommand::TheSecondPart(CommandParam& cmdPara, std::string data)
|
|
|
|
|
|
// 返回的数据;
|
|
|
++nDataPos;// 返回码占一字节;
|
|
|
- if (cmdPara.bMulticode) {
|
|
|
+ if (cmdPara.returnParam) {
|
|
|
if (_tcsicmp(cmdPara.param.c_str(), utils::ByteToChars((byte)data[nDataPos]).c_str()) != 0) {
|
|
|
#if _MSC_VER >= 1200 && _MSC_VER < 1500
|
|
|
cmdPara._rtnError = utils::_dprintf(_T("返回的指令参数错误, %s, %02X"), cmdPara.param.c_str(), (byte)data[nDataPos]);
|