|
|
@ -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()) { |
|
|
|