From 5a927fe5cd015bf00bc992220c0d4f8b802ca044 Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期二, 03 十二月 2024 09:37:21 +0800
Subject: [PATCH] 1.PLC页增加两按钮,将原测试代码移到此处
---
SourceCode/Bond/BondEq/CPLC.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/SourceCode/Bond/BondEq/CPLC.cpp b/SourceCode/Bond/BondEq/CPLC.cpp
index 9b1584c..7a7afcf 100644
--- a/SourceCode/Bond/BondEq/CPLC.cpp
+++ b/SourceCode/Bond/BondEq/CPLC.cpp
@@ -308,7 +308,7 @@
static int iii = 0;
iii++;
if (iii % 5 == 3) {
- if (!m_pChannel->isConnected())
+ if (m_pChannel != nullptr && !m_pChannel->isConnected())
m_pChannel->connect();
}
}
\ No newline at end of file
--
Gitblit v1.9.3