Cgitelnet update

Place variable declartion in correct place.
pull/205/head
Alex 8 years ago
parent ffd13c6e0a
commit 3cb3804a9f
  1. 3
      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;

Loading…
Cancel
Save