Skip to content
This repository was archived by the owner on Nov 11, 2024. It is now read-only.

Commit

Permalink
Get it right.
Browse files Browse the repository at this point in the history
  • Loading branch information
RobMeades committed Sep 22, 2024
1 parent 6fb866b commit 5521e30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions port/platform/esp-idf/src/u_port_ppp.c
Original file line number Diff line number Diff line change
Expand Up @@ -693,10 +693,10 @@ int32_t uPortPppReconnect(void *pDevHandle,
errorCode = (int32_t) U_ERROR_COMMON_PLATFORM;
pEspNetif = pPppInterface->netifDriver.base.netif;
#if 0
if ((pEspNetif != NULL) && (setIpAddress(pEspNetif, pIpAddress) == ESP_OK)) {
#else
(void) pIpAddress;
if (pEspNetif != NULL) {
#else
if ((pEspNetif != NULL) && (setIpAddress(pEspNetif, pIpAddress) == ESP_OK)) {
#endif
errorCode = (int32_t) U_ERROR_COMMON_SUCCESS;
// Perform a disconnect and then connect again
Expand Down

0 comments on commit 5521e30

Please sign in to comment.