844184169 8 月之前
父节点
当前提交
0398a0cc2d
共有 1 个文件被更改,包括 1 次插入 和 0 次删除
  1. 1 0
      TeamAAS-VM/Core/Management.cs

+ 1 - 0
TeamAAS-VM/Core/Management.cs

@@ -1199,6 +1199,7 @@ namespace TeamAAS_VP.Core
             try
             {
                 if (currentProduct.GlobalParamEx == null) currentProduct.GlobalParamEx = new Models.Product.ProductGlobalParamEx();
+                if (currentProduct.GlobalParamEx.DownPressure == null) currentProduct.GlobalParamEx.DownPressure = new PressureModel();
                 await plc.WriteNodeAsync(addressConfig.Down_Time.Address, currentProduct.GlobalParamEx.DownPressure.PressureTime);
                 await plc.WriteNodeAsync(addressConfig.Down_WetOut_Num.Address, currentProduct.GlobalParamEx.DownPressure.PressureNum);
                 await plc.WriteNodeAsync(addressConfig.Down_WetOut_Num_max.Address, currentProduct.GlobalParamEx.DownPressure.PressureNumMax);