diff options
author | QMK Bot <[email protected]> | 2025-01-08 16:51:30 +0000 |
---|---|---|
committer | QMK Bot <[email protected]> | 2025-01-08 16:51:30 +0000 |
commit | e28799d7904c82e13159dc1e44c6a8d5ec891ccb (patch) | |
tree | c289448cefc7bd6b8d0a54cbf3b9615e5e6c03c9 | |
parent | c1565bebcef26c400801caa4447012c2b9fa0a62 (diff) | |
parent | 80c90a6952f412defa6b3709a59507b2c76f3863 (diff) | |
download | qmk_firmware-e28799d7904c82e13159dc1e44c6a8d5ec891ccb.tar.gz qmk_firmware-e28799d7904c82e13159dc1e44c6a8d5ec891ccb.zip |
Merge remote-tracking branch 'origin/master' into develop
-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) |