summaryrefslogtreecommitdiff
path: root/keyboards/planck/keymaps/vifon/keymap.c
diff options
context:
space:
mode:
authorJack Humbert <jack.humb@gmail.com>2017-05-04 15:07:04 -0400
committerGitHub <noreply@github.com>2017-05-04 15:07:04 -0400
commit3af95509b5aa61113c1776751d9a0b9b5eef3c50 (patch)
tree73bf93013fd8aa3434f045dbcce38b0aaee4512d /keyboards/planck/keymaps/vifon/keymap.c
parent425f0a768b5b8389d88bd187d9029171f392b883 (diff)
parent436d661775178fb62b46afdc3d755fdb413dcb35 (diff)
Merge pull request #1273 from Vifon/pr_1267_fix
Add DYN_REC_STOP to the dynamic macros, cleanup PR #1267
Diffstat (limited to 'keyboards/planck/keymaps/vifon/keymap.c')
-rw-r--r--keyboards/planck/keymaps/vifon/keymap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/keyboards/planck/keymaps/vifon/keymap.c b/keyboards/planck/keymaps/vifon/keymap.c
index ee0c0ac366..ecd5c2cc44 100644
--- a/keyboards/planck/keymaps/vifon/keymap.c
+++ b/keyboards/planck/keymaps/vifon/keymap.c
@@ -107,7 +107,8 @@ const uint16_t PROGMEM fn_actions[] = {
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
static uint16_t key_timer;
- if (!process_record_dynamic_macro(keycode, record)) {
+ uint16_t macro_kc = (keycode == MO(_DYN) ? DYN_REC_STOP : keycode);
+ if (!process_record_dynamic_macro(macro_kc, record)) {
return false;
}