Skip to content

Commit

Permalink
Fix ThisThread warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
evedon committed Nov 27, 2020
1 parent 483db06 commit 786c64a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rtos/source/ThisThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ void ThisThread::sleep_for(Clock::duration_u32 rel_time)
#if MBED_CONF_RTOS_PRESENT
osStatus_t status = osDelay(rel_time.count());
MBED_ASSERT(status == osOK);
(void) status;
#else
thread_sleep_for(rel_time.count());
#endif
Expand All @@ -242,10 +243,12 @@ void ThisThread::sleep_until(Clock::time_point abs_time)
if (abs_time - now > wait_for_u32_max) {
osStatus_t status = osDelay(wait_for_u32_max.count());
MBED_ASSERT(status == osOK);
(void) status;
continue;
} else {
osStatus_t status = osDelay((abs_time - now).count());
MBED_ASSERT(status == osOK);
(void) status;
break;
}
}
Expand Down

0 comments on commit 786c64a

Please sign in to comment.