Skip to content

Commit

Permalink
Update RGB matrix indicator example (qmk#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 authored and sqrtnull committed Oct 22, 2024
1 parent 0a9d16b commit c493f39
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 c493f39

Please sign in to comment.