We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 56f7310 + 786c64a commit 53293dfCopy full SHA for 53293df
rtos/source/ThisThread.cpp
@@ -223,6 +223,7 @@ void ThisThread::sleep_for(Clock::duration_u32 rel_time)
223
#if MBED_CONF_RTOS_PRESENT
224
osStatus_t status = osDelay(rel_time.count());
225
MBED_ASSERT(status == osOK);
226
+ (void) status;
227
#else
228
thread_sleep_for(rel_time.count());
229
#endif
@@ -242,10 +243,12 @@ void ThisThread::sleep_until(Clock::time_point abs_time)
242
243
if (abs_time - now > wait_for_u32_max) {
244
osStatus_t status = osDelay(wait_for_u32_max.count());
245
246
247
continue;
248
} else {
249
osStatus_t status = osDelay((abs_time - now).count());
250
251
252
break;
253
}
254
0 commit comments