From 6a4ee574bcc8b67a5b842411eec45d351b14d1ed Mon Sep 17 00:00:00 2001 From: Keith Miyake Date: Mon, 14 Sep 2015 15:10:12 -0400 Subject: [PATCH] use preprocessor conditional on backlight initialization --- keyboard/planck/Makefile | 1 - keyboard/planck/matrix.c | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/keyboard/planck/Makefile b/keyboard/planck/Makefile index ad0c824375472312dc0e9c197e3c5d7fad9f5ef4..482c0cdb30119f9e809693542d3ff2e78859fbc8 100644 --- a/keyboard/planck/Makefile +++ b/keyboard/planck/Makefile @@ -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 diff --git a/keyboard/planck/matrix.c b/keyboard/planck/matrix.c index 8a021719ce11a75ef35db5f2e5ada51c9e611e3a..d335a8fbe1398d3f6e219b82dcd62d7706e55add 100644 --- a/keyboard/planck/matrix.c +++ b/keyboard/planck/matrix.c @@ -65,7 +65,9 @@ void matrix_init(void) MCUCR |= (1<