Skip to content

Commit

Permalink
Merge pull request #29 from kaymmm/nobacklight
Browse files Browse the repository at this point in the history
use preprocessor conditional on backlight initialization
  • Loading branch information
jackhumbert committed Sep 14, 2015
2 parents 5bb7ef0 + 6a4ee57 commit b9e42a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion keyboard/planck/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions keyboard/planck/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b9e42a8

Please sign in to comment.