diff --git a/bsp/stm32/stm32f072-st-nucleo/applications/SConscript b/bsp/stm32/stm32f072-st-nucleo/applications/SConscript index d2e97b200b..e4f47bfc8f 100644 --- a/bsp/stm32/stm32f072-st-nucleo/applications/SConscript +++ b/bsp/stm32/stm32f072-st-nucleo/applications/SConscript @@ -5,7 +5,7 @@ cwd = GetCurrentDir() CPPPATH = [cwd] src = ['main.c'] -if GetDepend(['PKG_USING_RTDUINO']): +if GetDepend(['PKG_USING_RTDUINO']) and not GetDepend(['RTDUINO_NO_SETUP_LOOP']): src += ['arduino_main.cpp'] group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH) diff --git a/bsp/stm32/stm32f401-st-nucleo/applications/SConscript b/bsp/stm32/stm32f401-st-nucleo/applications/SConscript index ef31501277..d2e48b15b7 100644 --- a/bsp/stm32/stm32f401-st-nucleo/applications/SConscript +++ b/bsp/stm32/stm32f401-st-nucleo/applications/SConscript @@ -5,7 +5,7 @@ cwd = GetCurrentDir() CPPPATH = [cwd] src = ['main.c'] -if GetDepend(['PKG_USING_RTDUINO']): +if GetDepend(['PKG_USING_RTDUINO']) and not GetDepend(['RTDUINO_NO_SETUP_LOOP']): src += ['arduino_main.cpp'] group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH) diff --git a/bsp/stm32/stm32l475-atk-pandora/applications/SConscript b/bsp/stm32/stm32l475-atk-pandora/applications/SConscript index 7a5c95a817..502bdaac41 100644 --- a/bsp/stm32/stm32l475-atk-pandora/applications/SConscript +++ b/bsp/stm32/stm32l475-atk-pandora/applications/SConscript @@ -5,7 +5,7 @@ cwd = GetCurrentDir() CPPPATH = [cwd] src = ['main.c'] -if GetDepend(['PKG_USING_RTDUINO']): +if GetDepend(['PKG_USING_RTDUINO']) and not GetDepend(['RTDUINO_NO_SETUP_LOOP']): src += ['arduino_main.cpp'] if GetDepend(['PKG_USING_NRF24L01']):