diff options
author | Drashna Jaelre <[email protected]> | 2025-01-08 08:50:54 -0800 |
---|---|---|
committer | GitHub <[email protected]> | 2025-01-08 08:50:54 -0800 |
commit | 80c90a6952f412defa6b3709a59507b2c76f3863 (patch) | |
tree | b8162a1ecdf35527e04894ac04e9b27f55669fa2 | |
parent | 95c74b6276c95fab5e04e22b1f1cd30aedead6fa (diff) | |
download | qmk_firmware-80c90a6952f412defa6b3709a59507b2c76f3863.tar.gz qmk_firmware-80c90a6952f412defa6b3709a59507b2c76f3863.zip |
[Bug] Fix Underglow keycode processing (#24798)
Co-authored-by: Ryan <[email protected]>
-rw-r--r-- | quantum/process_keycode/process_underglow.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/quantum/process_keycode/process_underglow.c b/quantum/process_keycode/process_underglow.c index 6104cd02c6..b8d8989ef3 100644 --- a/quantum/process_keycode/process_underglow.c +++ b/quantum/process_keycode/process_underglow.c @@ -16,7 +16,10 @@ bool process_underglow(uint16_t keycode, keyrecord_t *record) { if (record->event.pressed) { - uint8_t shifted = get_mods() & MOD_MASK_SHIFT; +#if defined(RGBLIGHT_ENABLE) || (defined(RGB_MATRIX_ENABLE) && !defined(RGB_MATRIX_DISABLE_SHARED_KEYCODES)) + const uint8_t shifted = get_mods() & MOD_MASK_SHIFT; +#endif + switch (keycode) { case QK_UNDERGLOW_TOGGLE: #if defined(RGBLIGHT_ENABLE) |