Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix some compiler warnings #73

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/RemoteDebug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions src/RemoteDebugWS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down