]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
use preprocessor conditional on backlight initialization
authorKeith Miyake <keith.miyake@gmail.com>
Mon, 14 Sep 2015 19:10:12 +0000 (15:10 -0400)
committerKeith Miyake <keith.miyake@gmail.com>
Mon, 14 Sep 2015 19:10:12 +0000 (15:10 -0400)
keyboard/planck/Makefile
keyboard/planck/matrix.c

index ad0c824375472312dc0e9c197e3c5d7fad9f5ef4..482c0cdb30119f9e809693542d3ff2e78859fbc8 100644 (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
index 8a021719ce11a75ef35db5f2e5ada51c9e611e3a..d335a8fbe1398d3f6e219b82dcd62d7706e55add 100644 (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);