diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/AutoControl/GelerWeterControl.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/AutoControl/GelerWeterControl.cs index d9cbef7..8103223 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/AutoControl/GelerWeterControl.cs +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/AutoControl/GelerWeterControl.cs @@ -622,13 +622,15 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl Db3000Helper.WriteModel(SingleSelect(), true); ControlsEntity.RepairState.MCValue = "开"; } - - if (ControlsEntity.RepairState.MCValue.ToString() == "开") + else { - Db3000Helper.WriteModel(SingleSelect(), false); - ControlsEntity.RepairState.MCValue = "关"; + if (ControlsEntity.RepairState.MCValue.ToString() == "开") + { + Db3000Helper.WriteModel(SingleSelect(), false); + ControlsEntity.RepairState.MCValue = "关"; + } } - + MessageBox.Show("维修模式已开启"); }