Browse Source

Accept 'quit' to exit from telnet session

fastled
Xose Pérez 7 years ago
parent
commit
59101eed3c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      code/espurna/telnet.ino

+ 1
- 1
code/espurna/telnet.ino View File

@ -45,7 +45,7 @@ void _telnetData(unsigned char clientId, void *data, size_t len) {
// Capture close connection // Capture close connection
char * p = (char *) data; char * p = (char *) data;
if (strncmp(p, "close", 5) == 0) {
if ((strncmp(p, "close", 5) == 0) || (strncmp(p, "quit", 4) == 0)) {
_telnetClients[clientId]->close(); _telnetClients[clientId]->close();
return; return;
} }


Loading…
Cancel
Save