diff --git a/configs/spark/src/stm32_composite.c b/configs/spark/src/stm32_composite.c index 3f48bd3046..a6c5a53afa 100644 --- a/configs/spark/src/stm32_composite.c +++ b/configs/spark/src/stm32_composite.c @@ -127,6 +127,7 @@ * ****************************************************************************/ +#if !defined(CONFIG_NSH_ARCHINIT) i|| !defined(CONFIG_NSH_BUILTIN_APPS) static int do_composite_archinitialize(void) { #ifdef HAVE_SST25 @@ -176,7 +177,7 @@ static int do_composite_archinitialize(void) return ret; } -#if CONFIG_SPARK_MOUNT_FLASH +#ifdef CONFIG_SPARK_MOUNT_FLASH char partname[16]; char mntpoint[16]; @@ -276,6 +277,7 @@ static int do_composite_archinitialize(void) return OK; } +#endif /**************************************************************************** * Public Functions diff --git a/configs/spark/src/stm32_nsh.c b/configs/spark/src/stm32_nsh.c index 1a893c6ccf..f99b278554 100644 --- a/configs/spark/src/stm32_nsh.c +++ b/configs/spark/src/stm32_nsh.c @@ -184,7 +184,7 @@ int board_app_initialize(void) return ret; } -#if CONFIG_SPARK_MOUNT_FLASH +#ifdef CONFIG_SPARK_MOUNT_FLASH char partname[16]; char mntpoint[16];