Ver a proveniência

修改Morks状态通知内存溢出bug

reconfiguration
pry há 6 meses
ascendente
cometimento
c59da79fc4
2 ficheiros alterados com 2 adições e 2 eliminações
  1. +1
    -1
      BPASmartClient.Modbus/ModbusTcp.cs
  2. +1
    -1
      BPASmartClient.MorkS/Control_Morks.cs

+ 1
- 1
BPASmartClient.Modbus/ModbusTcp.cs Ver ficheiro

@@ -361,7 +361,7 @@ namespace BPASmartClient.Modbus
{
if (address == null || tcpClient == null)
{
Show?.Invoke("写入失败,地址为空或断开连接");
//Show?.Invoke("写入失败,地址为空或断开连接");
return false;
}
ushort startAddress = (ushort)GetAddress(address);


+ 1
- 1
BPASmartClient.MorkS/Control_Morks.cs Ver ficheiro

@@ -164,7 +164,7 @@ namespace BPASmartClient.MorkS
//SortNum = mORKS.doe[subid].MorkOrder.SortNum.ToString();
if (!string.IsNullOrEmpty(goodName) && !string.IsNullOrEmpty(SortNum))
{
EventBus.GetInstance().Publish(new OrderStatusChangedEvent() { SortNum = SortNum, GoodName = goodName, Status = oRDER_STATUS, SubOrderId = subid, deviceClientType = DeviceType });
EventBus.GetInstance().Publish(new OrderStatusChangedEvent() { SortNum = SortNum, GoodName = goodName, Status = oRDER_STATUS, SubOrderId = subid, deviceClientType = DeviceType }, e => { complete?.Invoke(); });
var index = DataServer.GetInstance.morkS.MakeOrder.FindIndex(p => p.SortNum == SortNum);
if (index >= 0 && index < DataServer.GetInstance.morkS.MakeOrder.Count)
{


Carregando…
Cancelar
Guardar