diff --git a/app.config b/app.config
index e2e7b12..91524b3 100644
--- a/app.config
+++ b/app.config
@@ -74,8 +74,6 @@
-
-
diff --git a/deviceAnalysis.cs b/deviceAnalysis.cs
index d1250ba..93aac82 100644
--- a/deviceAnalysis.cs
+++ b/deviceAnalysis.cs
@@ -14,6 +14,7 @@ using System.Drawing.Imaging;
using System.Data;
using System.Security.Cryptography;
using System.Runtime.InteropServices.ComTypes;
+using System.Text.RegularExpressions;
namespace FlyDockTool
{
@@ -2140,7 +2141,7 @@ namespace FlyDockTool
string itemValue = string.Empty;
for (int i = 0; i < itemArray.Length; i++)
{
- for (int j = 0; j < valArray.Length; j++)
+ for (int j = 0; j < valArray.Length-1; j++)
{
if (itemArray[i] == valArray[j].Substring(valArray[j].IndexOf("OBX|1|NM|")).Split('|')[4])
{
@@ -3195,7 +3196,7 @@ namespace FlyDockTool
}
if (apiOptions.CurrentDevice == "BS-330E")//BS-330E
{
- if (tempData.Split('').Length >= 12 && tempData.Contains("LDL-C"))
+ if (tempData.Split('').Length>=12&& (tempData.Contains("LDL-C")&& Regex.Matches(tempData, "LDL-C").Count>1))
{
deviceAnalysisOption(tempData);
tempData = string.Empty;//执行完以后 将临时积累数据清空 以便接收下一个样本数据