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 4b5f34a + 18af867 commit 906999aCopy full SHA for 906999a
features/storage/TESTS/filesystem/general_filesystem/main.cpp
@@ -44,8 +44,8 @@ static const size_t test_files = 2;
44
45
FILE *fd[test_files];
46
47
-BlockDevice *bd = BlockDevice::get_default_instance();
48
-FileSystem *fs = FileSystem::get_default_instance();
+BlockDevice *bd;
+FileSystem *fs;
49
const char *bd_type;
50
51
/*----------------help functions------------------*/
@@ -76,6 +76,9 @@ static void deinit()
76
//init the blockdevice and reformat the filesystem
77
static void bd_init_fs_reformat()
78
{
79
+ bd = BlockDevice::get_default_instance();
80
+ fs = FileSystem::get_default_instance();
81
+
82
bd_type = bd->get_type();
83
init();
84
}
0 commit comments