diff options
| author | Joel Challis <git@zvecr.com> | 2024-11-23 10:09:34 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-23 10:09:34 +0000 |
| commit | 4a5bae51cd1f2cbca0ab8c8ae6e15262f8dc5a68 (patch) | |
| tree | 6dedf92beaa32ddd33476aec43c856f6a37901ed /quantum/quantum.c | |
| parent | 9e9b4acbde48acbe51fb9ff198be5dce49608ee9 (diff) | |
[Feature] Add keycode PDF(layer) to set the default layer in EEPROM (#24630)
* [Feature] Add keycode PDF(layer) to set the default layer in EEPROM (#21881)
* Apply suggestions from code review
Co-authored-by: Nick Brassel <nick@tzarc.org>
---------
Co-authored-by: Nebuleon <2391500+Nebuleon@users.noreply.github.com>
Co-authored-by: Nick Brassel <nick@tzarc.org>
Diffstat (limited to 'quantum/quantum.c')
| -rw-r--r-- | quantum/quantum.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/quantum/quantum.c b/quantum/quantum.c index 4aef26a6a5..d4ebd58e7f 100644 --- a/quantum/quantum.c +++ b/quantum/quantum.c | |||
| @@ -52,6 +52,10 @@ | |||
| 52 | # include "process_midi.h" | 52 | # include "process_midi.h" |
| 53 | #endif | 53 | #endif |
| 54 | 54 | ||
| 55 | #if !defined(NO_ACTION_LAYER) | ||
| 56 | # include "process_default_layer.h" | ||
| 57 | #endif | ||
| 58 | |||
| 55 | #ifdef PROGRAMMABLE_BUTTON_ENABLE | 59 | #ifdef PROGRAMMABLE_BUTTON_ENABLE |
| 56 | # include "process_programmable_button.h" | 60 | # include "process_programmable_button.h" |
| 57 | #endif | 61 | #endif |
| @@ -404,6 +408,9 @@ bool process_record_quantum(keyrecord_t *record) { | |||
| 404 | #ifdef TRI_LAYER_ENABLE | 408 | #ifdef TRI_LAYER_ENABLE |
| 405 | process_tri_layer(keycode, record) && | 409 | process_tri_layer(keycode, record) && |
| 406 | #endif | 410 | #endif |
| 411 | #if !defined(NO_ACTION_LAYER) | ||
| 412 | process_default_layer(keycode, record) && | ||
| 413 | #endif | ||
| 407 | #ifdef LAYER_LOCK_ENABLE | 414 | #ifdef LAYER_LOCK_ENABLE |
| 408 | process_layer_lock(keycode, record) && | 415 | process_layer_lock(keycode, record) && |
| 409 | #endif | 416 | #endif |
