From 33cd9d5135fc24d6e26d3c7a09ec36bf428dab66 Mon Sep 17 00:00:00 2001
From: xcd <834800634@qq.com>
Date: 星期日, 22 十一月 2020 13:42:53 +0800
Subject: [PATCH] 1. opf文件更新,添加报警输出项

---
 SizeDetection.cs |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/SizeDetection.cs b/SizeDetection.cs
index 5656971..5a5e868 100644
--- a/SizeDetection.cs
+++ b/SizeDetection.cs
@@ -334,6 +334,10 @@
                         btyLength += compL;
                         btyWidth += compW;
 
+                        //闄愬埗绮惧害5浣�
+                        btyLength = Math.Round(btyLength, 5);
+                        btyWidth = Math.Round(btyWidth, 5);
+
                         lengthMeasureState = (btyLength >= opcConfig.batteryLengthLimit.Min && btyLength <= opcConfig.batteryLengthLimit.Max) ? MeasureState.OK : MeasureState.NG;
                         widthMeasureState = (btyWidth >= opcConfig.batteryWidthLimit.Min && btyWidth <= opcConfig.batteryWidthLimit.Max) ? MeasureState.OK : MeasureState.NG;
 

--
Gitblit v1.8.0