Quellcode durchsuchen

使用最新的遥控头(非测试精灵)xml时,全部定义为不带空格的16进制字符串。

JeffWang vor 2 Jahren
Ursprung
Commit
2b2f3f4227
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      FieldTestTool/FieldTestTool/PropertiesWnd.cpp

+ 1 - 1
FieldTestTool/FieldTestTool/PropertiesWnd.cpp

@@ -735,7 +735,7 @@ bool CPropertiesWnd::SendInfraedSignal(const KeyInfo* pKey)
 	else if (Global::g_nVersion == 2)
 	{
 		// 将十六进制的字符串转成字节流;
-		std::string strBytes = utils::HexStringToBytes(pKey->strValue2, 3);
+		std::string strBytes = utils::HexStringToBytes(pKey->strValue2, 2);
 		memcpy_s(szSendData, MAX_SENDDATA, strBytes.c_str(), strBytes.size());
 		dwSendLen = strBytes.size();
 	}