Bluetooth: samples: ipsp: Convert to use k_timeout_t
IPSP sample was not using k_timeout_t value in net_context_recv() call. Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
parent
54864d063d
commit
15c162016e
1 changed files with 2 additions and 2 deletions
|
@ -238,7 +238,7 @@ static void setup_udp_recv(struct net_context *udp_recv6)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
ret = net_context_recv(udp_recv6, udp_received, 0, NULL);
|
ret = net_context_recv(udp_recv6, udp_received, K_NO_WAIT, NULL);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
LOG_ERR("Cannot receive IPv6 UDP packets");
|
LOG_ERR("Cannot receive IPv6 UDP packets");
|
||||||
}
|
}
|
||||||
|
@ -293,7 +293,7 @@ static void tcp_accepted(struct net_context *context,
|
||||||
|
|
||||||
net_context_set_accepting(context, false);
|
net_context_set_accepting(context, false);
|
||||||
|
|
||||||
ret = net_context_recv(context, tcp_received, 0, NULL);
|
ret = net_context_recv(context, tcp_received, K_NO_WAIT, NULL);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
LOG_ERR("Cannot receive TCP packet (family %d)",
|
LOG_ERR("Cannot receive TCP packet (family %d)",
|
||||||
net_context_get_family(context));
|
net_context_get_family(context));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue