Explorar el Código

add metal usage update bug

chenzk hace 2 días
padre
commit
b814ec857f

+ 6 - 2
CyberX8_RT/Modules/Metal/ReservoirRunRecipeRoutine.cs

@@ -1015,8 +1015,6 @@ namespace CyberX8_RT.Modules.Metal
                 _side = objs[1].ToString();
             }
             _startRecipeStep = false;
-            _anodeAUsage = 0;
-            _anodeBUsage = 0;
             _device = DEVICE.GetDevice<MetalCellDevice>(Module);
             _metalEntity = Singleton<RouteManager>.Instance.GetModule<MetalEntity>(Module);
             UpdatePowerStepDatas();
@@ -1086,5 +1084,11 @@ namespace CyberX8_RT.Modules.Metal
         {
             _datas.Clear();
         }
+
+        public void resetMetalUsage()
+        {
+            _anodeAUsage = 0;
+            _anodeBUsage = 0;
+        }
     }
 }

+ 1 - 0
CyberX8_RT/Modules/Metal/StandardHotRunRecipeRoutine.cs

@@ -157,6 +157,7 @@ namespace CyberX8_RT.Modules.Metal
             }
             _currentCycle = 0;
             _runRecipeRoutine.clearLotTrack();//清除loaTrack里面的历史数据
+            _runRecipeRoutine.resetMetalUsage();//清除usage历史数据
             return Runner.Start(Module, "Start run recipe");
         }
         /// <summary>