change - 电机控制小问题修改

dep_deliver
wangsr 1 year ago
parent ef0fbc58b4
commit 1e160486fc

@ -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))
{

@ -154,6 +154,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjDeliverControlBoard
ControlsImprot.ControlImport<MCButton>(ButtonE, Controls);
ControlsImprot.ControlImport<MCRadioButton>(RadioButtonE, Controls);
ControlsImprot.ControlImport<SwitchLight>(SwitchLightE, Controls);
ControlsImprot.ControlImport<MCLabel>(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))
{

Loading…
Cancel
Save