]> git.donarmstrong.com Git - qmk_firmware.git/blobdiff - tmk_core/common/magic.c
[Keymap] Add missing tap dance action and fix RGB hues in personal keymaps (#6312)
[qmk_firmware.git] / tmk_core / common / magic.c
index 194e4cc0266cd67317a3a02367c1a392f5718570..2b1a6a6ad256e72696f4476ae921a2cdcef18246 100644 (file)
 
 keymap_config_t keymap_config;
 
+/** \brief Magic
+ *
+ * FIXME: Needs doc
+ */
 void magic(void)
 {
     /* check signature */
@@ -27,12 +31,8 @@ void magic(void)
     /* keymap config */
     keymap_config.raw = eeconfig_read_keymap();
 
-#ifdef NKRO_ENABLE
-    keyboard_nkro = keymap_config.nkro;
-#endif
-
     uint8_t default_layer = 0;
     default_layer = eeconfig_read_default_layer();
-    default_layer_set((uint32_t)default_layer);
+    default_layer_set((layer_state_t)default_layer);
 
 }