1
0
Fork 0

Merge pull request #29 from kaymmm/nobacklight

use preprocessor conditional on backlight initialization
This commit is contained in:
Jack Humbert 2015-09-14 15:21:01 -04:00
commit b9e42a8753
2 changed files with 2 additions and 1 deletions

View file

@ -126,7 +126,6 @@ COMMAND_ENABLE = yes # Commands for debug and configuration
# NKRO_ENABLE = yes # USB Nkey Rollover - not yet supported in LUFA
BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
MIDI_ENABLE = YES # MIDI controls
BACKLIGHT_ENABLE = yes
ifdef MIDI_ENABLE
SRC += keymap_midi.c

View file

@ -65,7 +65,9 @@ void matrix_init(void)
MCUCR |= (1<<JTD);
MCUCR |= (1<<JTD);
#if BACKLIGHT_ENABLE == 'yes'
backlight_init_ports();
#endif
// Turn status LED on
DDRE |= (1<<6);