From a637f9f2e7c071c5cdc3eabdbee515e764e08b70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Sch=C3=BC=C3=9Fler?= Date: Fri, 29 Jan 2021 20:54:13 +0100 Subject: [PATCH] fix some compiler warnings --- src/RemoteDebug.cpp | 6 +++--- src/RemoteDebugWS.cpp | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/RemoteDebug.cpp b/src/RemoteDebug.cpp index 22c220a..986a408 100644 --- a/src/RemoteDebug.cpp +++ b/src/RemoteDebug.cpp @@ -260,7 +260,7 @@ bool RemoteDebug::begin(String hostName, uint16_t port, uint8_t startingDebugLe if (port != TELNET_PORT) { // Bug: not more can use begin(port).. return false; } - + TelnetServer.begin(); TelnetServer.setNoDelay(true); @@ -1517,7 +1517,7 @@ void RemoteDebug::processCommand() { // Send status to app if (_connectedWS) { - DebugWS.printf("$app:M:%lu:\n", free); + DebugWS.printf("$app:M:%du:\n", free); } #endif @@ -1928,7 +1928,7 @@ void RemoteDebug::wsSendInfo() { #endif DebugWS.println(); // Workaround to not get dirty "[0m" ??? - DebugWS.printf("$app:V:%s:%s:%c:%lu:%c:N\n", version.c_str(), board.c_str(), features, getFreeMemory(), dbgEnabled); + DebugWS.printf("$app:V:%s:%s:%c:%du:%c:N\n", version.c_str(), board.c_str(), features, getFreeMemory(), dbgEnabled); // Status of debug level diff --git a/src/RemoteDebugWS.cpp b/src/RemoteDebugWS.cpp index 022d8e5..1b91c58 100644 --- a/src/RemoteDebugWS.cpp +++ b/src/RemoteDebugWS.cpp @@ -230,8 +230,8 @@ RemoteDebugWS::~RemoteDebugWS() { void webSocketEvent(uint8_t num, WStype_t type, uint8_t * payload, size_t payloadlength) { // When a WebSocket message is received - int blk_count = 0; - char ipaddr[26]; + // int blk_count = 0; + // char ipaddr[26]; IPAddress localip; switch (type) {