修改BS-330E
This commit is contained in:
parent
e6e913bc8c
commit
4bd99c2de8
@ -74,8 +74,6 @@
|
||||
<!--尿常规U120-->
|
||||
<add key="U120" value="user-PC,U120,89,COM1,4800,NONE,8,1,GB18030" />
|
||||
|
||||
<!--BS-330E-->
|
||||
<add key="BS-330E" value="PC-202106061449,BS-330E,121,127.0.0.1,5600,GB18030" />
|
||||
|
||||
<!-- BC-5120 -->
|
||||
<add key="BC-5120" value="PC-202106061449,BC-5120,121,127.0.0.1,5600,GB18030" />
|
||||
|
@ -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;//执行完以后 将临时积累数据清空 以便接收下一个样本数据
|
||||
|
Loading…
Reference in New Issue
Block a user