From 5cef1ac864d72e915b963f2163bf7feba582e00f Mon Sep 17 00:00:00 2001 From: Harald Barth Date: Tue, 5 Jul 2022 15:09:32 +0200 Subject: [PATCH] answer always with hearbeat number --- WiThrottle.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/WiThrottle.cpp b/WiThrottle.cpp index 5a835ce..66463de 100644 --- a/WiThrottle.cpp +++ b/WiThrottle.cpp @@ -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);