summaryrefslogtreecommitdiff
path: root/tmk_core/common/eeconfig.c
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2019-09-27 21:33:55 +0100
committerFlorian Didron <fdidron@users.noreply.github.com>2020-01-09 08:57:11 +0900
commit1f66fd1a3c31911f083d4f0f45bd24446d15bfb1 (patch)
tree9a8dbbb984104608ecfb396cb3777217b5e08759 /tmk_core/common/eeconfig.c
parent9d5e6c1c0a0826028e8302ea7479a1921cd1ff98 (diff)
ARM split - Add support for dfu-util EE_HANDS flashing (#6543)
* Initial stab at some fake dfu-util-split-left behaviour * Apply suggestions from code review Co-Authored-By: fauxpark <fauxpark@gmail.com> * Clang format fixes * Fake eeprom init for both left and right hand
Diffstat (limited to 'tmk_core/common/eeconfig.c')
-rw-r--r--tmk_core/common/eeconfig.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/tmk_core/common/eeconfig.c b/tmk_core/common/eeconfig.c
index 07b818ea68..f33d831f77 100644
--- a/tmk_core/common/eeconfig.c
+++ b/tmk_core/common/eeconfig.c
@@ -48,6 +48,16 @@ void eeconfig_init_quantum(void) {
eeprom_update_dword(EECONFIG_RGB_MATRIX, 0);
eeprom_update_byte(EECONFIG_RGB_MATRIX_SPEED, 0);
+ // TODO: Remove once ARM has a way to configure EECONFIG_HANDEDNESS
+ // within the emulated eeprom via dfu-util or another tool
+#if defined INIT_EE_HANDS_LEFT
+ #pragma message "Faking EE_HANDS for left hand"
+ eeprom_update_byte(EECONFIG_HANDEDNESS, 1);
+#elif defined INIT_EE_HANDS_RIGHT
+ #pragma message "Faking EE_HANDS for right hand"
+ eeprom_update_byte(EECONFIG_HANDEDNESS, 0);
+#endif
+
eeconfig_init_kb();
}