Skip to content

Commit

Permalink
net: lib: config: Fix the timeout when waiting on network
Browse files Browse the repository at this point in the history
Loop by LOOP_DIVIDER counts instead of the number of seconds
specified in the timeout.

Fixes zephyrproject-rtos#39672

Signed-off-by: Paul Gautreaux <[email protected]>
  • Loading branch information
paulgfb authored and warp5tw committed Aug 28, 2024
1 parent 4f66c3c commit 5388fc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subsys/net/lib/config/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ int net_config_init_by_iface(struct net_if *iface, const char *app_info,
} else if (timeout == 0) {
count = 0;
} else {
count = timeout / 1000 + 1;
count = LOOP_DIVIDER;
}

/* First make sure that network interface is up */
Expand Down

0 comments on commit 5388fc6

Please sign in to comment.