pull/205/head
Alex 8 years ago
parent 623f7b4d79
commit 5e346a37a5
  1. 4
      esp-link/config.c

@ -171,12 +171,12 @@ bool ICACHE_FLASH_ATTR configRestore(void) {
if (flashConfig.telnet_port0 == 0) {
flashConfig.telnet_port0 = flashDefault.telnet_port0;
flashConfig.telnet_port0mode = flashDefault.telnet_port0mode;
flashConfig.telnet_port0pass = flashDefault.telnet_port0pass;
os_memcpy(flashConfig.telnet_port0pass, flashDefault.telnet_port0pass, 32);
}
if (flashConfig.telnet_port1 == 0) {
flashConfig.telnet_port1 = flashDefault.telnet_port1;
flashConfig.telnet_port1mode = flashDefault.telnet_port1mode;
flashConfig.telnet_port1pass = flashDefault.telnet_port1pass;
os_memcpy(flashConfig.telnet_port1pass, flashDefault.telnet_port1pass, 32);
}
return true;
}

Loading…
Cancel
Save