Skip to content

Commit

Permalink
Update RGB matrix indicator example (#23947)
Browse files Browse the repository at this point in the history
Changed the example in indicator-examples-2 to use a compound literal, otherwise the code fails to compile.
  • Loading branch information
lizaoreo committed Jun 17, 2024
1 parent baa564b commit dafc46f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/features/rgb_matrix.md
Original file line number Diff line number Diff line change
Expand Up @@ -1007,9 +1007,9 @@ bool rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) {
HSV hsv = {0, 255, 255};

if (layer_state_is(layer_state, 2)) {
hsv = {130, 255, 255};
hsv = (HSV){130, 255, 255};
} else {
hsv = {30, 255, 255};
hsv = (HSV){30, 255, 255};
}

if (hsv.v > rgb_matrix_get_val()) {
Expand Down

0 comments on commit dafc46f

Please sign in to comment.