summaryrefslogtreecommitdiff
path: root/keyboards/planck/keymaps/vifon/keymap.c
diff options
context:
space:
mode:
authorWeiyi Lou <cinaeco@gmail.com>2017-04-30 18:36:43 +1000
committerWeiyi Lou <cinaeco@gmail.com>2017-04-30 19:48:07 +1000
commitc8ac556e63c62078fe1edfc1a116c36ad34da8e3 (patch)
tree51e02cfebd0968d9fc90e7f4d4dc66d4e6f42e81 /keyboards/planck/keymaps/vifon/keymap.c
parent1201d4910fd7346ac27937e46071e09ec352f87f (diff)
downloadqmk_firmware-c8ac556e63c62078fe1edfc1a116c36ad34da8e3.tar.gz
qmk_firmware-c8ac556e63c62078fe1edfc1a116c36ad34da8e3.zip
Update vifon keymap to use `DYN_REC_STOP`
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;
}