From 0eb8e18721da1903f36445f03261343e60df8e69 Mon Sep 17 00:00:00 2001 From: zhouhuang Date: Wed, 4 Dec 2024 16:10:16 +0800 Subject: [PATCH] update --- das-dn/hostadsbf/hostadsbf.cpp | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/das-dn/hostadsbf/hostadsbf.cpp b/das-dn/hostadsbf/hostadsbf.cpp index ac768e47..2e3cfd93 100644 --- a/das-dn/hostadsbf/hostadsbf.cpp +++ b/das-dn/hostadsbf/hostadsbf.cpp @@ -830,22 +830,16 @@ BOOLEAN CHostADSBFProcess::OnPreCreate(int id) //m_turbine = new AdsDevice{m_remoteIp, AmsNetId(m_remoteNetId), AMSPORT_R0_PLC_RTS1}; m_turbine = new AdsDevice{m_remoteIp, AmsNetId(m_remoteNetId), m_remotePort}; - vLog(LOG_DEBUG, "here.\n"); if (m_turbine->IsConnected()) { - vLog(LOG_DEBUG, "here...\n"); if (!readDeviceState(*m_turbine)) { - vLog(LOG_DEBUG, "m_turbine is: %lu\n", m_turbine); - delete m_turbine; - m_turbine = NULL; - m_turbine = new AdsDevice{m_remoteIp, AmsNetId(m_remoteNetId), m_remotePort}; - - vLog(LOG_DEBUG, "m_turbine is: %lu\n", m_turbine); +// delete m_turbine; +// m_turbine = NULL; +// m_turbine = new AdsDevice{m_remoteIp, AmsNetId(m_remoteNetId), m_remotePort}; } } - vLog(LOG_DEBUG, "here.....\n"); if (m_bHaveFTP) { snprintf(m_user, sizeof(m_user), "%s", m_nOptions.ftp.user);