File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -327,7 +327,7 @@ void mount_unmount_test(BlockDevice *bd, FileSystem *fs)
327
327
#ifdef DISABLE_HOST_SIDE_UMOUNT
328
328
greentea_send_kv (" get_os_type" , 0 );
329
329
greentea_parse_kv (_key, _value, sizeof (_key), sizeof (_value));
330
- int32_t os_type = atoi (_key );
330
+ int32_t os_type = atoi (_value );
331
331
if (os_type != OS_WINDOWS) {
332
332
#endif
333
333
// unmount msd device on host side
@@ -340,13 +340,14 @@ void mount_unmount_test(BlockDevice *bd, FileSystem *fs)
340
340
if (!usb.media_removed ()) {
341
341
TEST_ASSERT_EQUAL_LOOP (true , usb.media_removed (), i);
342
342
}
343
- # ifdef DISABLE_HOST_SIDE_UMOUNT
343
+
344
344
// unmount since media_removed doesn't disconnects device side
345
345
usb.disconnect ();
346
- }
347
- # else
346
+ # ifdef DISABLE_HOST_SIDE_UMOUNT
347
+ } else {
348
348
// unmount
349
349
usb.disconnect ();
350
+ }
350
351
#endif
351
352
// check if device is detached on host side
352
353
greentea_send_kv (" check_if_not_mounted" , 0 );
You can’t perform that action at this time.
0 commit comments