diff options
author | Jack Humbert <jack.humb@gmail.com> | 2015-08-21 10:46:53 -0400 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2015-08-21 10:46:53 -0400 |
commit | 04885a3b447c82437d919d467328800eb00af629 (patch) | |
tree | af1603f20b8d28aee533ccaaed7992ce29619a94 /keyboard/planck/extended_keymaps/extended_keymap_default.c | |
parent | fb4fe52c0a5be527e6c9bfa006a5fb3ea79b4b0e (diff) |
preonic
Diffstat (limited to 'keyboard/planck/extended_keymaps/extended_keymap_default.c')
-rw-r--r-- | keyboard/planck/extended_keymaps/extended_keymap_default.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/keyboard/planck/extended_keymaps/extended_keymap_default.c b/keyboard/planck/extended_keymaps/extended_keymap_default.c index 710611c3cb..c75144bf4a 100644 --- a/keyboard/planck/extended_keymaps/extended_keymap_default.c +++ b/keyboard/planck/extended_keymaps/extended_keymap_default.c @@ -1,6 +1,7 @@ #include "extended_keymap_common.h" #include "backlight.h" #include "lufa.h" +#include "debug.h" const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { [0] = { /* Qwerty */ @@ -51,18 +52,12 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) switch(id) { case 0: if (record->event.pressed) { - if (!&midi_device) { - register_code(KC_RSFT); - } else { - midi_send_noteon(&midi_device, 1, 64, 127); - } + register_code(KC_RSFT); + midi_send_noteon(&midi_device, 1, 64, 127); backlight_step(); } else { - if (!&midi_device) { - unregister_code(KC_RSFT); - } else { - midi_send_noteoff(&midi_device, 1, 64, 127); - } + unregister_code(KC_RSFT); + midi_send_noteoff(&midi_device, 1, 64, 127); } break; } |