Browse Source

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

reconfiguration
pry 6 months ago
parent
commit
c59da79fc4
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      BPASmartClient.Modbus/ModbusTcp.cs
  2. +1
    -1
      BPASmartClient.MorkS/Control_Morks.cs

+ 1
- 1
BPASmartClient.Modbus/ModbusTcp.cs View File

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


+ 1
- 1
BPASmartClient.MorkS/Control_Morks.cs View File

@@ -164,7 +164,7 @@ namespace BPASmartClient.MorkS
//SortNum = mORKS.doe[subid].MorkOrder.SortNum.ToString(); //SortNum = mORKS.doe[subid].MorkOrder.SortNum.ToString();
if (!string.IsNullOrEmpty(goodName) && !string.IsNullOrEmpty(SortNum)) 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); var index = DataServer.GetInstance.morkS.MakeOrder.FindIndex(p => p.SortNum == SortNum);
if (index >= 0 && index < DataServer.GetInstance.morkS.MakeOrder.Count) if (index >= 0 && index < DataServer.GetInstance.morkS.MakeOrder.Count)
{ {


Loading…
Cancel
Save