diff --git a/code/espurna/telnet.ino b/code/espurna/telnet.ino index f40818a9..1e62e215 100644 --- a/code/espurna/telnet.ino +++ b/code/espurna/telnet.ino @@ -49,6 +49,13 @@ unsigned char _telnetWrite(void *data, size_t len) { void _telnetData(unsigned char clientId, void *data, size_t len) { + // Skip first message since it's always garbage + static bool first = true; + if (first) { + first = false; + return; + } + // Capture close connection char * p = (char *) data; if ((strncmp(p, "close", 5) == 0) || (strncmp(p, "quit", 4) == 0)) {