aboutsummaryrefslogtreecommitdiffstats
path: root/docs/features/rgb_matrix.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/features/rgb_matrix.md')
-rw-r--r--docs/features/rgb_matrix.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/features/rgb_matrix.md b/docs/features/rgb_matrix.md
index 8f50b28c03..b0110b436b 100644
--- a/docs/features/rgb_matrix.md
+++ b/docs/features/rgb_matrix.md
@@ -507,7 +507,7 @@ This example sets the modifiers to be a specific color based on the layer state.
bool rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) {
hsv_t hsv = {0, 255, 255};
- if (layer_state_is(layer_state, 2)) {
+ if (get_highest_layer(layer_state|default_layer_state) == 2) {
hsv = (hsv_t){130, 255, 255};
} else {
hsv = (hsv_t){30, 255, 255};