mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-12-23 21:01:25 +01:00
hearbeat 1s too agressive
This commit is contained in:
parent
803db81c8f
commit
64a6412ce2
@ -219,7 +219,7 @@ void WiThrottle::parse(RingStream * stream, byte * cmdx) {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'N': // Heartbeat (2), only send if connection completed by 'HU' message
|
case 'N': // Heartbeat (2), only send if connection completed by 'HU' message
|
||||||
StringFormatter::send(stream, F("*%d\n"), initSent ? HEARTBEAT_SECONDS : 1); // return timeout value
|
StringFormatter::send(stream, F("*%d\n"), initSent ? HEARTBEAT_SECONDS : HEARBEAT_SECONDS/2); // return timeout value
|
||||||
break;
|
break;
|
||||||
case 'M': // multithrottle
|
case 'M': // multithrottle
|
||||||
multithrottle(stream, cmd);
|
multithrottle(stream, cmd);
|
||||||
@ -241,8 +241,8 @@ void WiThrottle::parse(RingStream * stream, byte * cmdx) {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
// set heartbeat to 1 second because we need to sync the metadata
|
// set heartbeat to 5 seconds because we need to sync the metadata (1 second is too short!)
|
||||||
StringFormatter::send(stream,F("*1\n"));
|
StringFormatter::send(stream,F("*%d\n"), HEARBEAT_SECONDS/2);
|
||||||
initSent = true;
|
initSent = true;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user