update
This commit is contained in:
parent
299c58c769
commit
0eb8e18721
@ -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), AMSPORT_R0_PLC_RTS1};
|
||||||
|
|
||||||
m_turbine = new AdsDevice{m_remoteIp, AmsNetId(m_remoteNetId), m_remotePort};
|
m_turbine = new AdsDevice{m_remoteIp, AmsNetId(m_remoteNetId), m_remotePort};
|
||||||
vLog(LOG_DEBUG, "here.\n");
|
|
||||||
if (m_turbine->IsConnected())
|
if (m_turbine->IsConnected())
|
||||||
{
|
{
|
||||||
vLog(LOG_DEBUG, "here...\n");
|
|
||||||
if (!readDeviceState(*m_turbine))
|
if (!readDeviceState(*m_turbine))
|
||||||
{
|
{
|
||||||
vLog(LOG_DEBUG, "m_turbine is: %lu\n", m_turbine);
|
// delete m_turbine;
|
||||||
delete m_turbine;
|
// m_turbine = NULL;
|
||||||
m_turbine = NULL;
|
// m_turbine = new AdsDevice{m_remoteIp, AmsNetId(m_remoteNetId), m_remotePort};
|
||||||
m_turbine = new AdsDevice{m_remoteIp, AmsNetId(m_remoteNetId), m_remotePort};
|
|
||||||
|
|
||||||
vLog(LOG_DEBUG, "m_turbine is: %lu\n", m_turbine);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
vLog(LOG_DEBUG, "here.....\n");
|
|
||||||
if (m_bHaveFTP)
|
if (m_bHaveFTP)
|
||||||
{
|
{
|
||||||
snprintf(m_user, sizeof(m_user), "%s", m_nOptions.ftp.user);
|
snprintf(m_user, sizeof(m_user), "%s", m_nOptions.ftp.user);
|
||||||
|
Loading…
Reference in New Issue
Block a user