some better ifdefs - mostly indent
This commit is contained in:
parent
0f31feb6bb
commit
a1b1928d46
|
@ -24,8 +24,9 @@
|
||||||
#include "mcuf/mcuf.h"
|
#include "mcuf/mcuf.h"
|
||||||
#include "menu/menu.h"
|
#include "menu/menu.h"
|
||||||
#include "pixel.h"
|
#include "pixel.h"
|
||||||
|
#ifdef JOYSTICK_SUPPORT
|
||||||
# include "joystick/joystick.h"
|
# include "joystick/joystick.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
volatile unsigned char oldMode, oldOldmode, mode;
|
volatile unsigned char oldMode, oldOldmode, mode;
|
||||||
|
|
||||||
|
@ -212,7 +213,7 @@ void display_loop(){
|
||||||
case 43:
|
case 43:
|
||||||
menu();
|
menu();
|
||||||
mode = oldOldmode;
|
mode = oldOldmode;
|
||||||
#else
|
|
||||||
case 42:
|
case 42:
|
||||||
if (JOYISFIRE)
|
if (JOYISFIRE)
|
||||||
mode = 43;
|
mode = 43;
|
||||||
|
|
2
util.c
2
util.c
|
@ -3,7 +3,9 @@
|
||||||
#include <avr/io.h>
|
#include <avr/io.h>
|
||||||
#include <setjmp.h>
|
#include <setjmp.h>
|
||||||
|
|
||||||
|
#ifdef JOYSTICK_SUPPORT
|
||||||
# include "joystick/joystick.h"
|
# include "joystick/joystick.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
//this buffer is declared in main
|
//this buffer is declared in main
|
||||||
extern jmp_buf newmode_jmpbuf;
|
extern jmp_buf newmode_jmpbuf;
|
||||||
|
|
Loading…
Reference in New Issue