Browse Source

提交TM Vent配置文件报错gug

lixiang 8 months ago
parent
commit
13b51bff63
1 changed files with 4 additions and 2 deletions
  1. 4 2
      Venus/Venus_RT/Modules/TM/MFVentRoutine.cs

+ 4 - 2
Venus/Venus_RT/Modules/TM/MFVentRoutine.cs

@@ -39,14 +39,16 @@ namespace Venus_RT.Modules.TM
 
         public RState Start(params object[] objs)
         {
-            if(objs.Length > 0)
+
+            bool isLoadLock = (ModuleHelper.IsLoadLock(Module));
+            if (objs.Length > 0 && isLoadLock)
             {
                 _needCooling = (bool)objs[0];
                 _coolingMFCFlow = SC.GetValue<double>($"{Module}.Cooling.MFCFlow");
             }
 
             _skipRepeatVent = false;
-            if ((ModuleHelper.IsLoadLock(Module)) && !_needCooling && IsPressureReady())
+            if (isLoadLock && !_needCooling && IsPressureReady())
                 _skipRepeatVent = true; ;
 
             _JetTM.TurnSoftPumpValve(Module, false);