mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-05 05:34:32 +02:00
Do not printf if debug is not enabled
This commit is contained in:
@@ -85,7 +85,7 @@ esp_err_t tcpip_adapter_start(tcpip_adapter_if_t tcpip_if, uint8_t *mac, tcpip_a
|
|||||||
if (dhcps_status == TCPIP_ADAPTER_DHCP_INIT) {
|
if (dhcps_status == TCPIP_ADAPTER_DHCP_INIT) {
|
||||||
dhcps_start(esp_netif[tcpip_if], ip_info->ip);
|
dhcps_start(esp_netif[tcpip_if], ip_info->ip);
|
||||||
|
|
||||||
printf("dhcp server start:(ip: " IPSTR ", mask: " IPSTR ", gw: " IPSTR ")\n",
|
TCPIP_ADAPTER_DEBUG("dhcp server start:(ip: " IPSTR ", mask: " IPSTR ", gw: " IPSTR ")\n",
|
||||||
IP2STR(&ip_info->ip), IP2STR(&ip_info->netmask), IP2STR(&ip_info->gw));
|
IP2STR(&ip_info->ip), IP2STR(&ip_info->netmask), IP2STR(&ip_info->gw));
|
||||||
|
|
||||||
dhcps_status = TCPIP_ADAPTER_DHCP_STARTED;
|
dhcps_status = TCPIP_ADAPTER_DHCP_STARTED;
|
||||||
|
Reference in New Issue
Block a user