Update cgitelnet.c

Fixed bad variable reference
pull/205/head
Alex 8 years ago committed by GitHub
parent 936951d881
commit 0009d8f6aa
  1. 3
      esp-link/cgitelnet.c

@ -34,7 +34,6 @@ int ICACHE_FLASH_ATTR cgiTelnetSet(HttpdConnData *connData) {
char *coll; char *coll;
if (ok > 0) { if (ok > 0) {
// check whether ports are different // check whether ports are different
uint16_t pins = 0;
if (port1 == port2) { coll = "Ports cannot be the same!"; goto collision; } if (port1 == port2) { coll = "Ports cannot be the same!"; goto collision; }
// we're good, set flashconfig // we're good, set flashconfig
@ -44,7 +43,7 @@ int ICACHE_FLASH_ATTR cgiTelnetSet(HttpdConnData *connData) {
port1, port2); port1, port2);
// apply the changes // apply the changes
serbridgeInitPins(); serbridgeReinit();
// save to flash // save to flash
if (configSave()) { if (configSave()) {

Loading…
Cancel
Save