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 7fce7f5 + 5a0141c commit 33563b3Copy full SHA for 33563b3
TESTS/usb_device/msd/main.cpp
@@ -221,7 +221,7 @@ void msd_process(USBMSD *msd)
221
Semaphore proc;
222
msd->attach(callback(run_processing, &proc));
223
while (!msd_process_done) {
224
- proc.wait(100);
+ proc.try_acquire_for(100);
225
msd->process();
226
if (msd->media_removed()) {
227
media_remove_event.release();
@@ -345,7 +345,7 @@ void mount_unmount_test(BlockDevice *bd, FileSystem *fs)
345
TEST_ASSERT_EQUAL_STRING_LOOP("passed", _key, i);
346
347
// wait for unmount event (set 10s timeout)
348
- media_remove_event.wait(10000);
+ media_remove_event.try_acquire_for(10000);
349
if (!usb.media_removed()) {
350
TEST_ASSERT_EQUAL_LOOP(true, usb.media_removed(), i);
351
}
0 commit comments