From 6a2688e0dd6179f193e915790c8655d41a82d9fa Mon Sep 17 00:00:00 2001 From: Admin Date: Tue, 20 Oct 2026 09:42:02 +0800 Subject: [PATCH] =?UTF-8?q?=E8=80=81=E5=8C=96=E6=9F=9C=E6=B8=A9=E5=BA=A6?= =?UTF-8?q?=E8=A6=81=E5=88=B0=E8=BE=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ViewModel/AginTestVM.cs | 4 ++-- ViewModel/MainWindowVM.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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)