]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
bootmagic somehow not getting enabled, so adding eeconfig to backlight src include...
authorJack Humbert <jack.humb@gmail.com>
Fri, 15 Apr 2016 03:53:35 +0000 (23:53 -0400)
committerJack Humbert <jack.humb@gmail.com>
Fri, 15 Apr 2016 03:53:35 +0000 (23:53 -0400)
keyboard/planck/Makefile
keyboard/planck/keymaps/default/keymap.c
tmk_core/common.mk

index dc6e46df2cab98b30a3eece37e0036c304fa4dcf..693e9c8aa5ff59bc2f55a35ac865d757d88b472c 100644 (file)
@@ -107,6 +107,10 @@ endif
 
 SRC := $(KEYMAP_FILE) $(SRC)
 
+ifeq ($(BACKLIGHT_ENABLE), yes)
+       SRC := backlight.c $(SRC)
+endif
+
 CONFIG_H = config.h
 
 # MCU name
@@ -126,7 +130,6 @@ MCU = atmega32u4
 #     software delays.
 F_CPU = 16000000
 
-
 #
 # LUFA specific
 #
@@ -158,12 +161,6 @@ OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
 #   USBaspLoader     2048
 OPT_DEFS += -DBOOTLOADER_SIZE=4096
 
-
-ifeq ($(BACKLIGHT_ENABLE), yes)
-       SRC += backlight.c
-endif
-
-
 # Optimize size but this may cause error "relocation truncated to fit"
 #EXTRALDFLAGS = -Wl,--relax
 
index 97ba5d285ee265286dae43b6b59782409549745e..151a6b4f4632b28dd41f31cfcf1c7b06dc31b26b 100644 (file)
@@ -2,9 +2,6 @@
 // this is the style you want to emulate.
 
 #include "planck.h"
-#ifdef BACKLIGHT_ENABLE
-  #include "backlight.h"
-#endif
 #include "action_layer.h"
 #ifdef AUDIO_ENABLE
   #include "audio.h"
index 8d028d52ac29f3e8ca76122105a2346ea403f129..030767cc3fb5bf7194f0f3a4b250daa0d1acd9a8 100644 (file)
@@ -69,6 +69,7 @@ endif
 
 ifeq ($(BACKLIGHT_ENABLE), yes)
     SRC += $(COMMON_DIR)/backlight.c
+    SRC += $(COMMON_DIR)/avr/eeconfig.c
     OPT_DEFS += -DBACKLIGHT_ENABLE
 endif