summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--quantum/oryx.c6
-rw-r--r--quantum/oryx.h1
-rw-r--r--tmk_core/common/eeconfig.c8
3 files changed, 13 insertions, 2 deletions
diff --git a/quantum/oryx.c b/quantum/oryx.c
index ea34481d84..dc6c39e178 100644
--- a/quantum/oryx.c
+++ b/quantum/oryx.c
@@ -228,3 +228,9 @@ void layer_state_set_oryx(layer_state_t state) {
webusb_send(event, sizeof(event));
}
}
+
+void eeconfig_init_oryx(void) {
+ // reread settings from flash into eeprom
+ dynamic_keymap_reset();
+ dynamic_keymap_macro_reset();
+}
diff --git a/quantum/oryx.h b/quantum/oryx.h
index b7d341ea14..888975c603 100644
--- a/quantum/oryx.h
+++ b/quantum/oryx.h
@@ -81,4 +81,5 @@ void oryx_layer_event(void);
bool is_oryx_live_training_enabled(void);
bool process_record_oryx(uint16_t keycode, keyrecord_t *record);
void layer_state_set_oryx(layer_state_t state);
+void eeconfig_init_oryx(void);
void keyboard_pre_init_oryx(void);
diff --git a/tmk_core/common/eeconfig.c b/tmk_core/common/eeconfig.c
index 20d64438b1..d091b8e474 100644
--- a/tmk_core/common/eeconfig.c
+++ b/tmk_core/common/eeconfig.c
@@ -3,7 +3,9 @@
#include "eeprom.h"
#include "eeconfig.h"
#include "action_layer.h"
-
+#ifdef ORYX_ENABLE
+# include "oryx.h"
+#endif
#ifdef STM32_EEPROM_ENABLE
# include "hal.h"
# include "eeprom_stm32.h"
@@ -65,7 +67,9 @@ void eeconfig_init_quantum(void) {
#pragma message "Faking EE_HANDS for right hand"
eeprom_update_byte(EECONFIG_HANDEDNESS, 0);
#endif
-
+#ifdef ORYX_ENABLE
+ eeconfig_init_oryx();
+#endif
eeconfig_init_kb();
}