tcpip_adapter: fix a mistake in tcpip_adapter_dhcpc_stop
TW6803
This commit is contained in:
parent
a19b03611c
commit
e2b4421629
1 changed files with 1 additions and 1 deletions
|
@ -542,7 +542,7 @@ esp_err_t tcpip_adapter_dhcpc_stop(tcpip_adapter_if_t tcpip_if)
|
||||||
TCPIP_ADAPTER_DEBUG("dhcp client if not ready\n");
|
TCPIP_ADAPTER_DEBUG("dhcp client if not ready\n");
|
||||||
return ESP_ERR_TCPIP_ADAPTER_IF_NOT_READY;
|
return ESP_ERR_TCPIP_ADAPTER_IF_NOT_READY;
|
||||||
}
|
}
|
||||||
} else if (dhcps_status == TCPIP_ADAPTER_DHCP_STOPED) {
|
} else if (dhcpc_status == TCPIP_ADAPTER_DHCP_STOPED) {
|
||||||
TCPIP_ADAPTER_DEBUG("dhcp client already stoped\n");
|
TCPIP_ADAPTER_DEBUG("dhcp client already stoped\n");
|
||||||
return ESP_ERR_TCPIP_ADAPTER_DHCP_ALREADY_STOPED;
|
return ESP_ERR_TCPIP_ADAPTER_DHCP_ALREADY_STOPED;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue