summaryrefslogtreecommitdiffstats
path: root/keyboards/ergodox_ez
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2018-11-18 17:55:45 +0100
committerDrashna Jaelre <drashna@live.com>2018-11-18 17:57:51 +0100
commit223b3d2be79594eddd3837067348ab97da2df8ae (patch)
tree385161ab9798eaf5dfa69de445c1076a9b63a0d9 /keyboards/ergodox_ez
parentbdd41715af2acdfbdbe78283d7519664dd01088e (diff)
downloadqmk_firmware-223b3d2be79594eddd3837067348ab97da2df8ae.tar.gz
qmk_firmware-223b3d2be79594eddd3837067348ab97da2df8ae.tar.xz
Fix i2c_master.d listed more than once warning
Diffstat (limited to 'keyboards/ergodox_ez')
-rw-r--r--keyboards/ergodox_ez/keymaps/default/keymap.c2
-rw-r--r--keyboards/ergodox_ez/rules.mk8
2 files changed, 6 insertions, 4 deletions
diff --git a/keyboards/ergodox_ez/keymaps/default/keymap.c b/keyboards/ergodox_ez/keymaps/default/keymap.c
index ef70decd5..49de60773 100644
--- a/keyboards/ergodox_ez/keymaps/default/keymap.c
+++ b/keyboards/ergodox_ez/keymaps/default/keymap.c
@@ -1,6 +1,4 @@
#include QMK_KEYBOARD_H
-#include "debug.h"
-#include "action_layer.h"
#include "version.h"
#define BASE 0 // default layer
diff --git a/keyboards/ergodox_ez/rules.mk b/keyboards/ergodox_ez/rules.mk
index ef2aefbb9..446ba3e21 100644
--- a/keyboards/ergodox_ez/rules.mk
+++ b/keyboards/ergodox_ez/rules.mk
@@ -15,8 +15,7 @@
#----------------------------------------------------------------------------
# # project specific files
-SRC = matrix.c \
- i2c_master.c
+SRC += matrix.c
# MCU name
MCU = atmega32u4
@@ -85,4 +84,9 @@ API_SYSEX_ENABLE = no
RGBLIGHT_ENABLE = yes
RGB_MATRIX_ENABLE = no # enable later
+ifeq ($(strip $(RGB_MATRIX_ENABLE)), no)
+ SRC += i2c_master.c
+endif
+
+
LAYOUTS = ergodox