samples: net: coap: Fix the timeout data type
Converting timeout to k_timeout_t Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
parent
0a8991773b
commit
8c67575a08
2 changed files with 3 additions and 3 deletions
|
@ -42,7 +42,7 @@ static struct coap_block_context blk_ctx;
|
|||
|
||||
static void wait(void)
|
||||
{
|
||||
if (poll(fds, nfds, K_FOREVER) < 0) {
|
||||
if (poll(fds, nfds, -1) < 0) {
|
||||
LOG_ERR("Error in poll:%d", errno);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -984,7 +984,7 @@ static void retransmit_request(struct k_work *work)
|
|||
return;
|
||||
}
|
||||
|
||||
k_delayed_work_submit(&retransmit_work, pending->timeout);
|
||||
k_delayed_work_submit(&retransmit_work, K_MSEC(pending->timeout));
|
||||
}
|
||||
|
||||
static void update_counter(struct k_work *work)
|
||||
|
@ -1021,7 +1021,7 @@ static int create_pending_request(struct coap_packet *response,
|
|||
return 0;
|
||||
}
|
||||
|
||||
k_delayed_work_submit(&retransmit_work, pending->timeout);
|
||||
k_delayed_work_submit(&retransmit_work, K_MSEC(pending->timeout));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue