diff --git a/esp-link/cgitelnet.c b/esp-link/cgitelnet.c index 9070f99..7895bf0 100644 --- a/esp-link/cgitelnet.c +++ b/esp-link/cgitelnet.c @@ -24,14 +24,13 @@ int ICACHE_FLASH_ATTR cgiTelnetSet(HttpdConnData *connData) { if (connData->conn==NULL) { return HTTPD_CGI_DONE; // Connection aborted } - + char *coll; int8_t ok = 0; uint16_t port1, port2; ok |= getUInt16Arg(connData, "port1", &port1); ok |= getUInt16Arg(connData, "port2", &port2); if (ok < 0) { coll = "Failed to set ports. Ports appear to be invalid"; goto collision; } - char *coll; if (ok > 0) { // fill both port variables from flash or ajax provided value if (!port1) port1 = flashConfig.telnet_port1;