Remove the watchdog timer from the reflector.
This commit is contained in:
parent
1c45e41db8
commit
7c188fe7c0
1 changed files with 0 additions and 13 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue