Skip to content

Commit 9e10361

Browse files
authored
Fix invalid layer API usage in RGB Matrix docs (#25449)
1 parent 177e461 commit 9e10361

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/features/rgb_matrix.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ This example sets the modifiers to be a specific color based on the layer state.
486486
bool rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) {
487487
hsv_t hsv = {0, 255, 255};
488488

489-
if (layer_state_is(layer_state, 2)) {
489+
if (get_highest_layer(layer_state|default_layer_state) == 2) {
490490
hsv = (hsv_t){130, 255, 255};
491491
} else {
492492
hsv = (hsv_t){30, 255, 255};

0 commit comments

Comments
 (0)