进入定时查询状态去掉测试返回,直接调方法

This commit is contained in:
maqiao 2024-12-03 15:48:40 +08:00
parent 3c1a569b49
commit eb5cefe10b
1 changed files with 1 additions and 1 deletions

View File

@ -670,7 +670,7 @@ namespace DM_Weight.ViewModels
}
private void OnTimerElapsed(object sender, ElapsedEventArgs e)
{
bool[] boolArrs = {false,false,true }; //ModbusHelper.GetInstance().GetAllBoxState();
bool[] boolArrs = ModbusHelper.GetInstance().GetAllBoxState();
bool allTrue = Array.TrueForAll(boolArrs, b => b == false);
logger.Info($"进入定时查询状态方法{allTrue}");
if (allTrue)