From d5d5b6c4bd8052ef2622c05d5c543b984a75866e Mon Sep 17 00:00:00 2001 From: HCL <1625932291@qq.com> Date: Thu, 18 Jul 2024 17:30:38 +0800 Subject: [PATCH] =?UTF-8?q?1.=E9=98=B2=E6=AD=A2=E6=9C=AA=E8=A3=85GEM=20Lic?= =?UTF-8?q?sence=E5=AF=BC=E8=87=B4=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MECF.Framework.Common/MECF/Framework/Common/Gem/GemManager.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MECF.Framework.Common/MECF/Framework/Common/Gem/GemManager.cs b/MECF.Framework.Common/MECF/Framework/Common/Gem/GemManager.cs index 0dea79e..47b9393 100644 --- a/MECF.Framework.Common/MECF/Framework/Common/Gem/GemManager.cs +++ b/MECF.Framework.Common/MECF/Framework/Common/Gem/GemManager.cs @@ -34,9 +34,9 @@ namespace MECF.Framework.Common.Gem private PeriodicJob _monitorJob; - public string CommunicationState => _equipment.GetCommunicationState().ToString(); + public string CommunicationState => _equipment?.GetCommunicationState().ToString(); - public string ControlMode => _equipment.GetControlState().ToString(); + public string ControlMode => _equipment?.GetControlState().ToString(); public string SequenceRecipeContent { get; set; }