]> git.friedersdorff.com Git - max/tmk_keyboard.git/blobdiff - tmk_core/common/keymap.c
Merge pull request #1 from alh84001/patch-1
[max/tmk_keyboard.git] / tmk_core / common / keymap.c
index ece69fd5ed0e09be39850778ac6143860bfbed5f..134e01c20942451fe19edcd16c2db8ef32d651cd 100644 (file)
@@ -22,7 +22,11 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #include "action_macro.h"
 #include "wait.h"
 #include "debug.h"
+#include "bootloader.h"
 
+#ifdef BOOTMAGIC_ENABLE
+extern keymap_config_t keymap_config;
+#endif
 
 static action_t keycode_to_action(uint8_t keycode);
 
@@ -129,7 +133,7 @@ void action_function(keyrecord_t *record, uint8_t id, uint8_t opt)
 /* translates keycode to action */
 static action_t keycode_to_action(uint8_t keycode)
 {
-    action_t action;
+    action_t action = {};
     switch (keycode) {
         case KC_A ... KC_EXSEL:
         case KC_LCTRL ... KC_RGUI: