From 43d372ebe03b0d5d55a352b8da5a405761d45249 Mon Sep 17 00:00:00 2001 From: maqiao <625215135@qq.com> Date: Tue, 23 Jul 2024 11:25:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E8=8D=AF=E7=9B=92=E6=93=8D?= =?UTF-8?q?=E4=BD=9C=E6=96=B9=E6=B3=95=E4=B8=AD=E7=9A=84DrawerNo=E5=8F=82?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DM_Weight/Port/PortUtil.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DM_Weight/Port/PortUtil.cs b/DM_Weight/Port/PortUtil.cs index a9afcac..6602d94 100644 --- a/DM_Weight/Port/PortUtil.cs +++ b/DM_Weight/Port/PortUtil.cs @@ -970,7 +970,7 @@ namespace DM_Weight.Port /// /// /// - public async Task OpenBox(int DrawerNo, int ColNo) + public async Task OpenBox(int ColNo) { int[] iNum = new int[] { 3, 2, 1 }; var colNo2 = ColNo % 3 > 0 ? (ColNo % 3) - 1 : 2; @@ -986,7 +986,7 @@ namespace DM_Weight.Port /// /// /// - public async Task OpenBoxState(int drawerNo, int ColNo) + public async Task OpenBoxState(int ColNo) { decimal deColNo = (decimal)ColNo; var channel = Convert.ToInt32((DrawerNo * 10 + Math.Ceiling(deColNo / 3)).ToString(), 16);