From 3cb3804a9fe5cd470952819931df44fb44b9e284 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 28 Oct 2016 10:14:51 -0500 Subject: [PATCH] Cgitelnet update Place variable declartion in correct place. --- esp-link/cgitelnet.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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;