Update RGB matrix indicator example (#23947)
Changed the example in indicator-examples-2 to use a compound literal, otherwise the code fails to compile.
This commit is contained in:
parent
baa564bddf
commit
dafc46f1d1
@ -1007,9 +1007,9 @@ bool rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) {
|
|||||||
HSV hsv = {0, 255, 255};
|
HSV hsv = {0, 255, 255};
|
||||||
|
|
||||||
if (layer_state_is(layer_state, 2)) {
|
if (layer_state_is(layer_state, 2)) {
|
||||||
hsv = {130, 255, 255};
|
hsv = (HSV){130, 255, 255};
|
||||||
} else {
|
} else {
|
||||||
hsv = {30, 255, 255};
|
hsv = (HSV){30, 255, 255};
|
||||||
}
|
}
|
||||||
|
|
||||||
if (hsv.v > rgb_matrix_get_val()) {
|
if (hsv.v > rgb_matrix_get_val()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user