summaryrefslogtreecommitdiff
path: root/quantum/keymap_common.c
diff options
context:
space:
mode:
authorStephan Bösebeck <sb@caluga.de>2016-04-14 21:47:33 +0200
committerStephan Bösebeck <sb@caluga.de>2016-04-14 21:47:33 +0200
commit990254edecab782d6f2e71ebfc0b0dda4dc0781e (patch)
tree5b8f107ef8212a858d3137c3304da743813b1a09 /quantum/keymap_common.c
parenta71ab3ebb6ef3390a9eb20ba7d0a8a3c7ab6a18f (diff)
parentbdb6dceaebc358dd4aae593d51d3ba0dd61858a9 (diff)
Merge branch 'master' of https://github.com/jackhumbert/qmk_firmware
Diffstat (limited to 'quantum/keymap_common.c')
-rw-r--r--quantum/keymap_common.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/quantum/keymap_common.c b/quantum/keymap_common.c
index 2eef4f15a7..ae6cddb343 100644
--- a/quantum/keymap_common.c
+++ b/quantum/keymap_common.c
@@ -87,6 +87,7 @@ action_t action_for_key(uint8_t layer, keypos_t key)
return action;
#endif
} else if (keycode == RESET) { // RESET is 0x5000, which is why this is here
+ action_t action;
clear_keyboard();
#ifdef AUDIO_ENABLE
play_notes(&goodbye, 5, false);
@@ -96,12 +97,13 @@ action_t action_for_key(uint8_t layer, keypos_t key)
*(uint16_t *)0x0800 = 0x7777; // these two are a-star-specific
#endif
bootloader_jump();
- return;
+ return action;
} else if (keycode == DEBUG) { // DEBUG is 0x5001
// TODO: Does this actually work?
+ action_t action;
print("\nDEBUG: enabled.\n");
debug_enable = true;
- return;
+ return action;
} else if (keycode >= 0x5000 && keycode < 0x6000) {
// Layer movement shortcuts
// See .h to see constraints/usage