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

Commit

Permalink
Fix for setting of pIpAddress.
Browse files Browse the repository at this point in the history
  • Loading branch information
RobMeades committed Sep 19, 2024
1 parent 566a0e3 commit 9b760f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cell/src/u_cell_net.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9b760f6

Please sign in to comment.