diff options
author | Ryan <[email protected]> | 2023-07-06 18:48:02 +1000 |
---|---|---|
committer | GitHub <[email protected]> | 2023-07-06 09:48:02 +0100 |
commit | 87b11345a55d076966846d87b60d0f315b8bb984 (patch) | |
tree | a64503358d5f30b55a722b882eebaf1b60b03e1f /quantum/led.c | |
parent | 928e03e8d669cb35a96c2aa4a09012c527b27892 (diff) | |
download | qmk_firmware-87b11345a55d076966846d87b60d0f315b8bb984.tar.gz qmk_firmware-87b11345a55d076966846d87b60d0f315b8bb984.zip |
Get rid of `USB_LED_CAPS_LOCK` (#21436)
Diffstat (limited to 'quantum/led.c')
-rw-r--r-- | quantum/led.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/quantum/led.c b/quantum/led.c index 42144566fd..8d86374a6f 100644 --- a/quantum/led.c +++ b/quantum/led.c @@ -153,14 +153,14 @@ __attribute__((weak)) void led_set(uint8_t usb_led) { /** \brief Trigger behaviour on transition to suspend */ void led_suspend(void) { - uint8_t leds_off = 0; + led_t leds_off = {0}; #ifdef BACKLIGHT_CAPS_LOCK if (is_backlight_enabled()) { // Don't try to turn off Caps Lock indicator as it is backlight and backlight is already off - leds_off |= (1 << USB_LED_CAPS_LOCK); + leds_off.caps_lock = true; } #endif - led_set(leds_off); + led_set(leds_off.raw); } /** \brief Trigger behaviour on transition from suspend |