From b0e8de1c977dba81508e1f756c6659a0a3b2ab95 Mon Sep 17 00:00:00 2001
From: Drashna Jaelre <drashna@live.com>
Date: Fri, 16 Feb 2018 09:00:39 -0800
Subject: [PATCH] Fix EE HANDS on splits losing handedness if RGB is enabled
 (#2399)

* Fix EE HANDS on splits losing handedness if RGB is enabled

* Because I'm an idiot and did a bad cut/paste job
---
 keyboards/deltasplit75/split_util.h | 5 +----
 keyboards/helix/rev1/split_util.h   | 6 +-----
 keyboards/helix/rev2/split_util.h   | 6 +-----
 keyboards/nyquist/split_util.h      | 6 +-----
 keyboards/orthodox/split_util.h     | 5 +----
 keyboards/viterbi/split_util.h      | 5 +----
 6 files changed, 6 insertions(+), 27 deletions(-)

diff --git a/keyboards/deltasplit75/split_util.h b/keyboards/deltasplit75/split_util.h
index 6b896679ca..1c92352132 100644
--- a/keyboards/deltasplit75/split_util.h
+++ b/keyboards/deltasplit75/split_util.h
@@ -2,11 +2,8 @@
 #define SPLIT_KEYBOARD_UTIL_H
 
 #include <stdbool.h>
+#include "eeconfig.h"
 
-#ifdef EE_HANDS
-	#define EECONFIG_BOOTMAGIC_END      (uint8_t *)10
-	#define EECONFIG_HANDEDNESS         EECONFIG_BOOTMAGIC_END
-#endif
 
 #define SLAVE_I2C_ADDRESS           0x32
 
diff --git a/keyboards/helix/rev1/split_util.h b/keyboards/helix/rev1/split_util.h
index 3ae76c209a..595a0659e1 100644
--- a/keyboards/helix/rev1/split_util.h
+++ b/keyboards/helix/rev1/split_util.h
@@ -2,11 +2,7 @@
 #define SPLIT_KEYBOARD_UTIL_H
 
 #include <stdbool.h>
-
-#ifdef EE_HANDS
-	#define EECONFIG_BOOTMAGIC_END      (uint8_t *)10
-	#define EECONFIG_HANDEDNESS         EECONFIG_BOOTMAGIC_END
-#endif
+#include "eeconfig.h"
 
 #define SLAVE_I2C_ADDRESS           0x32
 
diff --git a/keyboards/helix/rev2/split_util.h b/keyboards/helix/rev2/split_util.h
index 757e934c71..687ca19bd3 100644
--- a/keyboards/helix/rev2/split_util.h
+++ b/keyboards/helix/rev2/split_util.h
@@ -2,11 +2,7 @@
 #define SPLIT_KEYBOARD_UTIL_H
 
 #include <stdbool.h>
-
-#ifdef EE_HANDS
-	#define EECONFIG_BOOTMAGIC_END      (uint8_t *)10
-	#define EECONFIG_HANDEDNESS         EECONFIG_BOOTMAGIC_END
-#endif
+#include "eeconfig.h"
 
 #define SLAVE_I2C_ADDRESS           0x32
 
diff --git a/keyboards/nyquist/split_util.h b/keyboards/nyquist/split_util.h
index 3ae76c209a..595a0659e1 100644
--- a/keyboards/nyquist/split_util.h
+++ b/keyboards/nyquist/split_util.h
@@ -2,11 +2,7 @@
 #define SPLIT_KEYBOARD_UTIL_H
 
 #include <stdbool.h>
-
-#ifdef EE_HANDS
-	#define EECONFIG_BOOTMAGIC_END      (uint8_t *)10
-	#define EECONFIG_HANDEDNESS         EECONFIG_BOOTMAGIC_END
-#endif
+#include "eeconfig.h"
 
 #define SLAVE_I2C_ADDRESS           0x32
 
diff --git a/keyboards/orthodox/split_util.h b/keyboards/orthodox/split_util.h
index 3ae76c209a..a0a8dd3bf4 100644
--- a/keyboards/orthodox/split_util.h
+++ b/keyboards/orthodox/split_util.h
@@ -2,11 +2,8 @@
 #define SPLIT_KEYBOARD_UTIL_H
 
 #include <stdbool.h>
+#include "eeconfig.h"
 
-#ifdef EE_HANDS
-	#define EECONFIG_BOOTMAGIC_END      (uint8_t *)10
-	#define EECONFIG_HANDEDNESS         EECONFIG_BOOTMAGIC_END
-#endif
 
 #define SLAVE_I2C_ADDRESS           0x32
 
diff --git a/keyboards/viterbi/split_util.h b/keyboards/viterbi/split_util.h
index 3ae76c209a..a0a8dd3bf4 100644
--- a/keyboards/viterbi/split_util.h
+++ b/keyboards/viterbi/split_util.h
@@ -2,11 +2,8 @@
 #define SPLIT_KEYBOARD_UTIL_H
 
 #include <stdbool.h>
+#include "eeconfig.h"
 
-#ifdef EE_HANDS
-	#define EECONFIG_BOOTMAGIC_END      (uint8_t *)10
-	#define EECONFIG_HANDEDNESS         EECONFIG_BOOTMAGIC_END
-#endif
 
 #define SLAVE_I2C_ADDRESS           0x32