From 7c188fe7c038eed8dab489fa866b54eca8e4ef1e Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Thu, 13 Oct 2016 23:12:51 +0100 Subject: [PATCH] Remove the watchdog timer from the reflector. --- YSFGateway/YSFGateway.cpp | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/YSFGateway/YSFGateway.cpp b/YSFGateway/YSFGateway.cpp index 03fcc09..baeeaca 100644 --- a/YSFGateway/YSFGateway.cpp +++ b/YSFGateway/YSFGateway.cpp @@ -192,7 +192,6 @@ int CYSFGateway::run() return 1; } - CTimer watchdogTimer(1000U, 0U, 500U); CTimer lostTimer(1000U, 120U); CTimer pollTimer(1000U, 5U); @@ -244,8 +243,6 @@ int CYSFGateway::run() unsigned char buffer[200U]; while (rptNetwork.read(buffer) > 0U) { - watchdogTimer.start(); - CYSFFICH fich; bool valid = fich.decode(buffer + 35U); if (valid) { @@ -297,7 +294,6 @@ int CYSFGateway::run() if ((buffer[34U] & 0x01U) == 0x01U) { if (m_gps != NULL) m_gps->reset(); - watchdogTimer.stop(); m_exclude = false; } } @@ -337,15 +333,6 @@ int CYSFGateway::run() pollTimer.start(); } - watchdogTimer.clock(ms); - if (watchdogTimer.isRunning() && watchdogTimer.hasExpired()) { - LogMessage("Network watchdog has expired"); - if (m_gps != NULL) - m_gps->reset(); - watchdogTimer.stop(); - m_exclude = false; - } - if (ms < 5U) CThread::sleep(5U); }