summaryrefslogtreecommitdiff
path: root/keyboards/wilba_tech/wt_rgb_backlight.c
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2022-10-13 07:15:38 +0000
committerQMK Bot <hello@qmk.fm>2022-10-13 07:15:38 +0000
commit9227c04a8d8324cd21f0f00c6735ad5dd79fa1ad (patch)
tree6abcb917c256a2ac87858518c92aedb80f298028 /keyboards/wilba_tech/wt_rgb_backlight.c
parent6a363fbb5bb5552390aabcc3cbd113d58bd758b1 (diff)
parent4a74e3d02d585ff099c5f900eb05ce3c16c985d7 (diff)
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'keyboards/wilba_tech/wt_rgb_backlight.c')
-rw-r--r--keyboards/wilba_tech/wt_rgb_backlight.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/keyboards/wilba_tech/wt_rgb_backlight.c b/keyboards/wilba_tech/wt_rgb_backlight.c
index e0a04ce32c..d093488fbf 100644
--- a/keyboards/wilba_tech/wt_rgb_backlight.c
+++ b/keyboards/wilba_tech/wt_rgb_backlight.c
@@ -144,7 +144,6 @@ backlight_config g_config = {
};
bool g_suspend_state = false;
-uint8_t g_indicator_state = 0;
// Global tick at 20 Hz
uint32_t g_tick = 0;
@@ -1982,11 +1981,6 @@ void backlight_set_suspend_state(bool state)
g_suspend_state = state;
}
-void backlight_set_indicator_state(uint8_t state)
-{
- g_indicator_state = state;
-}
-
void backlight_effect_rgb_test(void)
{
// Mask out bits 4 and 5
@@ -2425,8 +2419,7 @@ void backlight_effect_indicators_set_colors( uint8_t index, HS color )
// colors already set
void backlight_effect_indicators(void)
{
- if ( g_config.caps_lock_indicator.index != 255 &&
- ( g_indicator_state & (1<<USB_LED_CAPS_LOCK) ) )
+ if ( g_config.caps_lock_indicator.index != 255 && host_keyboard_led_state().caps_lock )
{
backlight_effect_indicators_set_colors( g_config.caps_lock_indicator.index, g_config.caps_lock_indicator.color );
}