some better ifdefs - mostly indent

This commit is contained in:
asklepios 2011-05-09 20:54:01 +00:00
parent 0f31feb6bb
commit a1b1928d46
2 changed files with 21 additions and 18 deletions

View File

@ -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
View File

@ -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;