844184169 6 месяцев назад
Родитель
Сommit
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);