From 9b760f6505b048be525149e7273b2878ceda0670 Mon Sep 17 00:00:00 2001 From: RobMeades Date: Thu, 19 Sep 2024 10:33:17 +0100 Subject: [PATCH] Fix for setting of pIpAddress. --- cell/src/u_cell_net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);