diff options
author | Christopher Browne <cbbrowne@ca.afilias.info> | 2016-06-13 17:22:45 -0400 |
---|---|---|
committer | Christopher Browne <cbbrowne@ca.afilias.info> | 2016-06-13 17:22:45 -0400 |
commit | 2fe06e4ef53f380eee6e91ece44f6a385ec32c2c (patch) | |
tree | 1c70d38184e8467e48de3e90b087b01d12677026 /keyboard/planck/keymaps | |
parent | 3fe26d47a62117c985843361d279bc73e3c86c40 (diff) |
Simplify submitting my fave cbbrowne keystroke by using SEND_STRING()
Diffstat (limited to 'keyboard/planck/keymaps')
-rw-r--r-- | keyboard/planck/keymaps/cbbrowne/config_user.h | 1 | ||||
-rw-r--r-- | keyboard/planck/keymaps/cbbrowne/keymap.c | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/keyboard/planck/keymaps/cbbrowne/config_user.h b/keyboard/planck/keymaps/cbbrowne/config_user.h index 5e7c2622d5..de46ec6aaa 100644 --- a/keyboard/planck/keymaps/cbbrowne/config_user.h +++ b/keyboard/planck/keymaps/cbbrowne/config_user.h @@ -4,3 +4,4 @@ #define randmul 181 #define randmod 167 + diff --git a/keyboard/planck/keymaps/cbbrowne/keymap.c b/keyboard/planck/keymaps/cbbrowne/keymap.c index 942efe4a29..041f4e608e 100644 --- a/keyboard/planck/keymaps/cbbrowne/keymap.c +++ b/keyboard/planck/keymaps/cbbrowne/keymap.c @@ -3,6 +3,7 @@ #include "backlight.h" #endif #include "config_user.h" +#include "quantum.h" /* Each layer is given a name to aid in readability, which is then used in the keymap matrix below. The underscores do not denote @@ -131,7 +132,8 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) break; case M_USERNAME: if (record->event.pressed) { - return MACRO( I(1), T(C), T(B), T(B), T(R), T(O), T(W), T(N), T(E)); + SEND_STRING("cbbrowne"); + return MACRO_NONE ; } else { return MACRO_NONE ; } |