diff options
author | Jack Humbert <jack.humb@gmail.com> | 2015-10-28 13:54:41 -0400 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2015-10-28 13:54:41 -0400 |
commit | 8643e01286816baecfc8784529f35155f55aaa63 (patch) | |
tree | e2277066867573e00758317aa5b5adb7bf87f282 /quantum | |
parent | 1fb8b4ce3a14c98b54962a9829471e3e0c68bca6 (diff) | |
parent | d3db8d62f6fc6a7dee43978ddc8356579b502b37 (diff) |
merging
Diffstat (limited to 'quantum')
-rw-r--r-- | quantum/keymap_common.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/quantum/keymap_common.c b/quantum/keymap_common.c index fc889a3082..6cc7adf51f 100644 --- a/quantum/keymap_common.c +++ b/quantum/keymap_common.c @@ -19,6 +19,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #include "report.h" #include "keycode.h" #include "action_layer.h" +#include <util/delay.h> #include "action.h" #include "action_macro.h" #include "debug.h" @@ -71,6 +72,8 @@ 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 + clear_keyboard(); + _delay_ms(250); bootloader_jump(); return; } else if (keycode == DEBUG) { // DEBUG is 0x5001 @@ -78,7 +81,7 @@ action_t action_for_key(uint8_t layer, keypos_t key) print("\nDEBUG: enabled.\n"); debug_enable = true; return; - } else if (keycode >= 0x5000 && keycode < 0x6000) { + } else if (keycode >= 0x5000 && keycode < 0x6000) { // Layer movement shortcuts // See .h to see constraints/usage int type = (keycode >> 0x8) & 0xF; @@ -107,7 +110,7 @@ action_t action_for_key(uint8_t layer, keypos_t key) action_t action; action.code = ACTION_LAYER_TOGGLE(layer); return action; - } + } #ifdef MIDI_ENABLE } else if (keycode >= 0x6000 && keycode < 0x7000) { action_t action; |