Skip to content

Commit

Permalink
[Bug] Fix Underglow keycode processing (#24798)
Browse files Browse the repository at this point in the history
Co-authored-by: Ryan <fauxpark@gmail.com>
  • Loading branch information
drashna and fauxpark authored Jan 8, 2025
1 parent 95c74b6 commit 80c90a6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion quantum/process_keycode/process_underglow.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 80c90a6

Please sign in to comment.