diff options
author | Eddie Ehlin <eddiex@eddiex.se> | 2021-08-16 21:22:12 +0200 |
---|---|---|
committer | Eddie Ehlin <eddiex@eddiex.se> | 2021-08-16 21:22:12 +0200 |
commit | a5e8be0c76128c734142e15ef12d261d2ebd77b8 (patch) | |
tree | 9b5bc030a31b2beaf7e848e9e2735141f9c283e8 /keymap | |
parent | 5c58fffefc32cc716382c18e8c1e8fb49bfbffe9 (diff) | |
download | planck-keyboard-a5e8be0c76128c734142e15ef12d261d2ebd77b8.tar.gz planck-keyboard-a5e8be0c76128c734142e15ef12d261d2ebd77b8.zip |
Bumped keymap to support latest release of QMK. Re-enabled process_record_user content as well.
Diffstat (limited to 'keymap')
-rw-r--r-- | keymap/0xedd1e/config.h | 3 | ||||
-rw-r--r-- | keymap/0xedd1e/keymap.c | 8 |
2 files changed, 4 insertions, 7 deletions
diff --git a/keymap/0xedd1e/config.h b/keymap/0xedd1e/config.h index 6fa31cc..9020d2b 100644 --- a/keymap/0xedd1e/config.h +++ b/keymap/0xedd1e/config.h @@ -14,9 +14,6 @@ * MIDI options */ -/* Prevent use of disabled MIDI features in the keymap */ -//#define MIDI_ENABLE_STRICT 1 - /* enable basic MIDI features: - MIDI notes can be sent when in Music mode is on */ diff --git a/keymap/0xedd1e/keymap.c b/keymap/0xedd1e/keymap.c index 302779e..ddbbcf2 100644 --- a/keymap/0xedd1e/keymap.c +++ b/keymap/0xedd1e/keymap.c @@ -123,11 +123,10 @@ layer_state_t layer_state_set_user(layer_state_t state) { } bool process_record_user(uint16_t keycode, keyrecord_t *record) { - /* switch (keycode) { case QWERTY: if (record->event.pressed) { - print("mode just switched to qwerty and this is a huge string\n"); + print("Base layer set to: QWERTY\n"); set_single_persistent_default_layer(_QWERTY); } return false; @@ -150,7 +149,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { return false; break; } - */ + return true; } @@ -160,7 +159,7 @@ uint16_t muse_counter = 0; uint8_t muse_offset = 70; uint16_t muse_tempo = 50; -void encoder_update(bool clockwise) { +bool encoder_update(bool clockwise) { if (muse_mode) { if (IS_LAYER_ON(_RAISE)) { if (clockwise) { @@ -190,6 +189,7 @@ void encoder_update(bool clockwise) { #endif } } + return true; } void dip_switch_update_user(uint8_t index, bool active) { |