From f5fa7d2058fec2342c3e3e3955089b8f9f9a630f Mon Sep 17 00:00:00 2001
From: LAPTOP-T815PCOQ\25526 <mr.liuyang@126.com>
Date: 星期五, 10 一月 2025 15:02:15 +0800
Subject: [PATCH] 1. 添加IO模块
---
SourceCode/Bond/BoounionPLC/Model.cpp | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/SourceCode/Bond/BoounionPLC/Model.cpp b/SourceCode/Bond/BoounionPLC/Model.cpp
index 6ac7225..eac0e4f 100644
--- a/SourceCode/Bond/BoounionPLC/Model.cpp
+++ b/SourceCode/Bond/BoounionPLC/Model.cpp
@@ -348,8 +348,8 @@
m_configuration.removePLC(pszName);
notifyPtr(RX_CODE_REMOVE_PLC, iter->second);
- //delete iter->second;
- //m_mapPlc.erase(iter); 这个地方需要研究一下
+ delete iter->second;
+ m_mapPlc.erase(iter);
return 0;
}
@@ -358,6 +358,8 @@
{
if (pPlc != nullptr) {
m_strCurrPlc = pPlc->getName();
+ } else {
+ m_strCurrPlc = "";
}
}
--
Gitblit v1.9.3