From 1e160486fcbda20ed827df2bd7c28eb3349b0038 Mon Sep 17 00:00:00 2001 From: wangsr Date: Mon, 25 Dec 2023 08:50:23 +0800 Subject: [PATCH] =?UTF-8?q?change=20-=20=E7=94=B5=E6=9C=BA=E6=8E=A7?= =?UTF-8?q?=E5=88=B6=E5=B0=8F=E9=97=AE=E9=A2=98=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LjDeliverControlBoard/ControlBoardButtonAction.cs | 8 ++++---- .../LjDeliverControlBoard/InitAction.cs | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjDeliverControlBoard/ControlBoardButtonAction.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjDeliverControlBoard/ControlBoardButtonAction.cs index 9d47902..63d77dd 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjDeliverControlBoard/ControlBoardButtonAction.cs +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjDeliverControlBoard/ControlBoardButtonAction.cs @@ -206,7 +206,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjDeliverControlBoard string str = MotorSelect.MCValue.ToString(); int value = Convert.ToInt32(str); - if (value < 32) + if (value <= 32) { ControlsHelper.WriteMode(str, false); } @@ -226,7 +226,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjDeliverControlBoard string str = MotorSelect.MCValue.ToString(); int value = Convert.ToInt32(str); - if (value < 32) + if (value <= 32) { ControlsHelper.WriteMode(str, true); } @@ -242,7 +242,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjDeliverControlBoard string str = MotorSelect.MCValue.ToString(); byte byt = ControlsHelper.ReadMode(name); int value = Convert.ToInt32(str); - if (value < 32) + if (value <= 32) { if (byt.GetBit(3)) { @@ -291,7 +291,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjDeliverControlBoard string str = MotorSelect.MCValue.ToString(); byte byt = ControlsHelper.ReadMode(name); int value = Convert.ToInt32(str); - if (value < 32) + if (value <= 32) { if (byt.GetBit(5)) { diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjDeliverControlBoard/InitAction.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjDeliverControlBoard/InitAction.cs index 66f47c3..91b8acf 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjDeliverControlBoard/InitAction.cs +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjDeliverControlBoard/InitAction.cs @@ -154,6 +154,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjDeliverControlBoard ControlsImprot.ControlImport(ButtonE, Controls); ControlsImprot.ControlImport(RadioButtonE, Controls); ControlsImprot.ControlImport(SwitchLightE, Controls); + ControlsImprot.ControlImport(LabelE, Controls); } private void InitOnce() @@ -296,7 +297,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjDeliverControlBoard string str = MotorSelect.MCValue.ToString(); byte byt = ControlsHelper.ReadMode(str); int value = Convert.ToInt32(str); - if (value < 32) + if (value <= 32) { if (!byt.GetBit(0) && byt.GetBit(1)) {