Change EOF handling.
This commit is contained in:
parent
1bcd9c82b2
commit
489d6077fd
3 changed files with 3 additions and 3 deletions
|
@ -254,7 +254,7 @@ int CYSFGateway::run()
|
|||
if (networkEnabled && m_linked && !m_exclude)
|
||||
m_netNetwork->write(buffer);
|
||||
|
||||
if (buffer[34U] == 0x01U) {
|
||||
if ((buffer[34U] & 0x01U) == 0x01U) {
|
||||
if (m_gps != NULL)
|
||||
m_gps->reset();
|
||||
watchdogTimer.stop();
|
||||
|
|
|
@ -82,7 +82,7 @@ void CYSFParrot::run()
|
|||
parrot.write(buffer);
|
||||
watchdogTimer.start();
|
||||
|
||||
if (buffer[34U] == 0x01U) {
|
||||
if ((buffer[34U] & 0x01U) == 0x01U) {
|
||||
::fprintf(stdout, "Received end of transmission\n");
|
||||
turnaroundTimer.start();
|
||||
watchdogTimer.stop();
|
||||
|
|
|
@ -226,7 +226,7 @@ void CYSFReflector::run()
|
|||
}
|
||||
}
|
||||
|
||||
if (buffer[34U] == 0x01U) {
|
||||
if ((buffer[34U] & 0x01U) == 0x01U) {
|
||||
LogMessage("Received end of transmission");
|
||||
watchdogTimer.stop();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue