Browse Source

some better ifdefs - mostly indent

feature/2015
asklepios 14 years ago
parent
commit
a1b1928d46
  1. 5
      display_loop.c
  2. 2
      util.c

5
display_loop.c

@ -24,8 +24,9 @@
#include "mcuf/mcuf.h"
#include "menu/menu.h"
#include "pixel.h"
#ifdef JOYSTICK_SUPPORT
# include "joystick/joystick.h"
#endif
volatile unsigned char oldMode, oldOldmode, mode;
@ -212,7 +213,7 @@ void display_loop(){
case 43:
menu();
mode = oldOldmode;
#else
case 42:
if (JOYISFIRE)
mode = 43;

2
util.c

@ -3,7 +3,9 @@
#include <avr/io.h>
#include <setjmp.h>
#ifdef JOYSTICK_SUPPORT
# include "joystick/joystick.h"
#endif
//this buffer is declared in main
extern jmp_buf newmode_jmpbuf;

Loading…
Cancel
Save