some better ifdefs - mostly indent
This commit is contained in:
parent
0f31feb6bb
commit
a1b1928d46
2 changed files with 21 additions and 18 deletions
|
@ -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
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…
Add table
Reference in a new issue