diff --git a/display_loop.c b/display_loop.c index 826b6d3..9aa0afc 100644 --- a/display_loop.c +++ b/display_loop.c @@ -24,8 +24,9 @@ #include "mcuf/mcuf.h" #include "menu/menu.h" #include "pixel.h" -#include "joystick/joystick.h" - +#ifdef JOYSTICK_SUPPORT +# include "joystick/joystick.h" +#endif volatile unsigned char oldMode, oldOldmode, mode; @@ -61,13 +62,13 @@ void display_loop(){ case 1: scrolltext(scrolltext_text); -#ifdef RANDOM_SUPPORT +# ifdef RANDOM_SUPPORT { char a[28]; sprintf(a," #include -#include "joystick/joystick.h" +#ifdef JOYSTICK_SUPPORT +# include "joystick/joystick.h" +#endif //this buffer is declared in main extern jmp_buf newmode_jmpbuf;