844184169 hace 6 meses
padre
commit
0398a0cc2d
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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);