REM:
1. 修正迪普设备更新心跳无法正常工作问题
This commit is contained in:
HuangXin 2021-01-27 18:34:14 +08:00
parent 105610c578
commit 97c00c3523
1 changed files with 4 additions and 2 deletions

View File

@ -364,16 +364,18 @@ public class DpTechAbilityImpl implements DisposeAbility {
public void periodTaskRuntime() {
log.debug("++++DpTech Period Task Running");
if (timerCnt++ % DpTechConfigValue.PROTECTION_UPGRADE_PERIOD == 0) {
if (timerCnt % DpTechConfigValue.PROTECTION_UPGRADE_PERIOD == 0) {
// 定时检测防护对象
getDisposeDeviceProtectObject();
}
// 更新心跳状态
if (timerCnt++ % DisposeConfigValue.HEART_PERIOD_OF_SECOND == 0) {
if (timerCnt % DisposeConfigValue.HEART_PERIOD_OF_SECOND == 0) {
devGetLinkStatus();
}
timerCnt++;
log.debug("----DpTech Period Task Running");
}