diff --git a/ViewModel/AginTestVM.cs b/ViewModel/AginTestVM.cs index 65f8012..1496be7 100644 --- a/ViewModel/AginTestVM.cs +++ b/ViewModel/AginTestVM.cs @@ -558,10 +558,10 @@ namespace ViewModel { ReceiveInfo = CR; - if (MyCommand != null) + if (MyCommand != null && ReceiveInfo!=null) { MyCommand.ReturnValue = CR.DataHex; - MyCommand.DataLength = ReceiveInfo.Datalength; //GetLenght(ReceiveInfo.DataHex); + MyCommand.DataLength = CR.Datalength; //GetLenght(ReceiveInfo.DataHex); } } } diff --git a/ViewModel/MainWindowVM.cs b/ViewModel/MainWindowVM.cs index 0a36f36..709159d 100644 --- a/ViewModel/MainWindowVM.cs +++ b/ViewModel/MainWindowVM.cs @@ -2128,7 +2128,7 @@ namespace ViewModel { case GengralProcessEnum.Start: //老化柜温度要到达 - if (CurrHeatShow.StatusForeground == ColorStr.Green || CurrentMachine.RunningMode) + if (CurrHeatShow.StatusForeground == ColorStr.Green || CurrentMachine.RunningMode|| TestTimeSpan.TotalMinutes >= CurrentMachine.MyPar.TestTime) { if (!Testing)