omit 0.0.0.0 static IP; return uart to normal

pull/30/head
Thorsten von Eicken 10 years ago
parent 291c92e557
commit f8cd9ff411
  1. 3
      user/cgiwifi.c
  2. 2
      user/log.c

@ -515,7 +515,10 @@ int ICACHE_FLASH_ATTR printWifiInfo(char *buff) {
} else {
len += os_sprintf(buff+len, ", \"ip\": \"-none-\"");
}
if (flashConfig.staticip > 0)
len += os_sprintf(buff+len, ", \"staticip\": \"%d.%d.%d.%d\"", IP2STR(&flashConfig.staticip));
else
len += os_sprintf(buff+len, ", \"staticip\": \"\"");
return len;
}

@ -20,7 +20,7 @@ static bool log_newline; // at start of a new line
void ICACHE_FLASH_ATTR
log_uart(bool enable) {
if (!enable && !log_no_uart) {
#if 0
#if 1
os_printf("Turning OFF uart log\n");
os_delay_us(4*1000L); // time for uart to flush
log_no_uart = !enable;

Loading…
Cancel
Save