Commit 15c16201 authored by Jukka Rissanen's avatar Jukka Rissanen
Browse files

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: default avatarJukka Rissanen <jukka.rissanen@linux.intel.com>
parent 54864d06
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -238,7 +238,7 @@ static void setup_udp_recv(struct net_context *udp_recv6)
{
	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) {
		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);

	ret = net_context_recv(context, tcp_received, 0, NULL);
	ret = net_context_recv(context, tcp_received, K_NO_WAIT, NULL);
	if (ret < 0) {
		LOG_ERR("Cannot receive TCP packet (family %d)",
			net_context_get_family(context));