This commit is contained in:
zhouhuang 2024-12-16 10:53:31 +08:00
parent 151e23df2e
commit e7b58121bd
2 changed files with 6 additions and 2 deletions

View File

@ -2814,7 +2814,7 @@ void CRYDevice::heart_beat(int status)
#endif #endif
jsonValue["linkId"] = linkId; jsonValue["linkId"] = linkId;
jsonValue["online"] = (config.processes[i].softdog >= PROCESS_WATCHDOG_TIME) ? false : true; jsonValue["online"] = (config.processes[i].softdog >= PROCESS_WATCHDOG_TIME) ? false : true;
//vLog(LOG_DEBUG, "link %s, %d\n", linkId, (config.processes[i].softdog >= PROCESS_WATCHDOG_TIME) ? 0 : 1); vLog(LOG_DEBUG, "link %s, %d\n", linkId, (config.processes[i].softdog >= PROCESS_WATCHDOG_TIME) ? 0 : 1);
jsonLink.append(jsonValue); jsonLink.append(jsonValue);
} }
} }

View File

@ -992,7 +992,11 @@ BOOLEAN CHostADSBFProcess::OnTimer(void)
} }
return TRUE; return TRUE;
} }
if (!m_turbine->IsConnected()) return TRUE; if (!m_turbine->IsConnected())
{
vLog(LOG_DEBUG, "%s device not connected.\n", m_pidName.c_str());
return TRUE;
}
m_apdu_t0_begin = system32.timers; m_apdu_t0_begin = system32.timers;
if (m_bHaveFTP) if (m_bHaveFTP)
{ //启动时读取一次,后面自己维护序号 { //启动时读取一次,后面自己维护序号