From 8320912635b0cf5b0ef4179d4a6c82c35c276c39 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Fri, 3 Dec 2021 08:21:26 +0000 Subject: [PATCH] git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15179 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 --- demos/STM32/RT-VFS-FATFS/main.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/demos/STM32/RT-VFS-FATFS/main.c b/demos/STM32/RT-VFS-FATFS/main.c index 11fd5dee9..45a84cbbf 100644 --- a/demos/STM32/RT-VFS-FATFS/main.c +++ b/demos/STM32/RT-VFS-FATFS/main.c @@ -311,19 +311,17 @@ int main(void) { /* Board-dependent setup code.*/ portab_setup(); + /* Starting a serial port for the shell, initializing other streams too.*/ + sdStart(&PORTAB_SD1, NULL); + nullObjectInit(&nullstream); + #if defined(DEMO_USE_FATFS) /* Activates the SDC driver using default configuration.*/ sdcStart(&PORTAB_SDCD1, NULL); /* Activates the card insertion monitor.*/ tmr_init(&PORTAB_SDCD1); -#endif - /* Starting a serial port for the shell, initializing other streams too.*/ - sdStart(&PORTAB_SD1, NULL); - nullObjectInit(&nullstream); - -#if defined(DEMO_USE_FATFS) /* Initializing an overlay VFS object overlaying a FatFS driver, no need for names, both are root.*/ drvOverlayObjectInit(&vfs_root, drvFatFSInit(""), "");