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

Loading…
Cancel
Save