We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 177e461 commit 9e10361Copy full SHA for 9e10361
1 file changed
docs/features/rgb_matrix.md
@@ -486,7 +486,7 @@ This example sets the modifiers to be a specific color based on the layer state.
486
bool rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) {
487
hsv_t hsv = {0, 255, 255};
488
489
- if (layer_state_is(layer_state, 2)) {
+ if (get_highest_layer(layer_state|default_layer_state) == 2) {
490
hsv = (hsv_t){130, 255, 255};
491
} else {
492
hsv = (hsv_t){30, 255, 255};
0 commit comments