1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-12-23 12:51:24 +01:00

answer always with hearbeat number

This commit is contained in:
Harald Barth 2022-07-05 15:09:32 +02:00
parent 6687c6f46d
commit 5cef1ac864

View File

@ -211,9 +211,7 @@ void WiThrottle::parse(RingStream * stream, byte * cmdx) {
}
break;
case 'N': // Heartbeat (2), only send if connection completed by 'HU' message
if (initSent) {
StringFormatter::send(stream, F("*%d\n"),HEARTBEAT_SECONDS); // return timeout value
}
StringFormatter::send(stream, F("*%d\n"), initSent ? HEARTBEAT_SECONDS : 1); // return timeout value
break;
case 'M': // multithrottle
multithrottle(stream, cmd);