diff --git a/cell/src/u_cell_net.c b/cell/src/u_cell_net.c index e77ac5af..6694b955 100644 --- a/cell/src/u_cell_net.c +++ b/cell/src/u_cell_net.c @@ -299,7 +299,7 @@ static void activateContextCallback(uAtClientHandle_t atHandle, if (U_CELL_PRIVATE_HAS(pInstance->pModule, U_CELL_PRIVATE_FEATURE_PPP)) { if ((uCellNetGetIpAddressStr(cellHandle, buffer) > 0) && - (uSockStringToAddress(buffer, &address) > 0)) { + (uSockStringToAddress(buffer, &address) == 0)) { pIpAddress = &address.ipAddress; } uPortPppReconnect(cellHandle, pIpAddress);