@@ -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)
if GetDepend(['PKG_USING_NRF24L01']):