1
0
Fork 0

Change EOF handling.

ycs232-kbc
Jonathan Naylor 9 years ago
parent 1bcd9c82b2
commit 489d6077fd

@ -254,7 +254,7 @@ int CYSFGateway::run()
if (networkEnabled && m_linked && !m_exclude) if (networkEnabled && m_linked && !m_exclude)
m_netNetwork->write(buffer); m_netNetwork->write(buffer);
if (buffer[34U] == 0x01U) { if ((buffer[34U] & 0x01U) == 0x01U) {
if (m_gps != NULL) if (m_gps != NULL)
m_gps->reset(); m_gps->reset();
watchdogTimer.stop(); watchdogTimer.stop();

@ -82,7 +82,7 @@ void CYSFParrot::run()
parrot.write(buffer); parrot.write(buffer);
watchdogTimer.start(); watchdogTimer.start();
if (buffer[34U] == 0x01U) { if ((buffer[34U] & 0x01U) == 0x01U) {
::fprintf(stdout, "Received end of transmission\n"); ::fprintf(stdout, "Received end of transmission\n");
turnaroundTimer.start(); turnaroundTimer.start();
watchdogTimer.stop(); watchdogTimer.stop();

@ -226,7 +226,7 @@ void CYSFReflector::run()
} }
} }
if (buffer[34U] == 0x01U) { if ((buffer[34U] & 0x01U) == 0x01U) {
LogMessage("Received end of transmission"); LogMessage("Received end of transmission");
watchdogTimer.stop(); watchdogTimer.stop();
} }

Loading…
Cancel
Save