1
0
Fork 0

Tweak the data transfer management.

ycs232-kbc
Jonathan Naylor 9 years ago committed by GitHub
parent df04d34595
commit 59b4908d5f

@ -213,8 +213,7 @@ int CYSFGateway::run()
for (;;) { for (;;) {
unsigned char buffer[200U]; unsigned char buffer[200U];
unsigned int len = rptNetwork.read(buffer); while (rptNetwork.read(buffer) > 0U) {
if (len > 0U) {
watchdogTimer.start(); watchdogTimer.start();
CYSFFICH fich; CYSFFICH fich;
@ -262,8 +261,7 @@ int CYSFGateway::run()
} }
} }
len = m_netNetwork->read(buffer); while (m_netNetwork->read(buffer) > 0U) {
if (len > 0U) {
if (networkEnabled && m_linked) if (networkEnabled && m_linked)
rptNetwork.write(buffer); rptNetwork.write(buffer);
} }

Loading…
Cancel
Save