Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions simplelink/source/ti/drivers/net/wifi/porting/cc_pal.c
Original file line number Diff line number Diff line change
Expand Up @@ -410,8 +410,9 @@ int Semaphore_pend_handle(sem_t* pSemHandle, uint32_t timeout)
abstime.tv_sec = 0;

/* Since POSIX timeout are relative and not absolute,
* take the current timestamp. */
clock_gettime(CLOCK_REALTIME, &abstime);
* take the current timestamp.
* Zephyr sem_timedwait uses uptime */
clock_gettime(CLOCK_MONOTONIC, &abstime);
if(abstime.tv_nsec < 0)
{
abstime.tv_sec = timeout;
Expand Down