diff --git a/src/TelemetryClient.cpp b/src/TelemetryClient.cpp index aea4c323..22fa370d 100644 --- a/src/TelemetryClient.cpp +++ b/src/TelemetryClient.cpp @@ -138,7 +138,7 @@ namespace OpenWifi { fmt::format("TELEMETRY-WS-PING({}): received. PONG sent back.", CId_)); WS_->sendFrame("", 0, (int)Poco::Net::WebSocket::FRAME_OP_PONG | - (int)Poco::Net::WebSocket::FRAME_FLAG_FIN); + (int)Poco::Net::WebSocket::FRAME_FLAG_FIN); } else if (Op == Poco::Net::WebSocket::FRAME_OP_CLOSE) { poco_information(Logger(), fmt::format("TELEMETRY-DISCONNECT({}): device wants to disconnect.", CId_)); diff --git a/src/rttys/RTTYS_server.cpp b/src/rttys/RTTYS_server.cpp index 87677143..f128301b 100644 --- a/src/rttys/RTTYS_server.cpp +++ b/src/rttys/RTTYS_server.cpp @@ -610,8 +610,8 @@ namespace OpenWifi { case Poco::Net::WebSocket::FRAME_OP_PING: { Connection->WSSocket_->sendFrame("", 0, - (int) Poco::Net::WebSocket::FRAME_FLAG_FIN | - (int) Poco::Net::WebSocket::FRAME_OP_BINARY); + (int)Poco::Net::WebSocket::FRAME_OP_PONG | + (int)Poco::Net::WebSocket::FRAME_OP_BINARY); } break; case Poco::Net::WebSocket::FRAME_OP_PONG: {