Skip to content

Commit a29b700

Browse files
use FS_PRINT_SD_FILES to show files when running init function
1 parent d44fa5b commit a29b700

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/fs/fs_esp32.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434
* @data 27.06.2023
3535
*
3636
* @brief This file contains ESP32 sepecific file system imeplementation
37+
*
38+
* use FS_PRINT_SD_FILES to print files in init function
3739
*/
3840

3941

@@ -308,11 +310,13 @@ static bool FS_SdCardInit(void)
308310
delay(200);
309311
#endif
310312

313+
#ifdef FS_PRINT_SD_FILES
311314
{
312315
File dir = SD_MMC.open("/");
313316
printDirectory(dir, 0);
314317
dir.close();
315318
}
319+
#endif
316320

317321
return true;
318322
}

0 commit comments

Comments
 (0)