Update RGB matrix indicator example (#23947)
Some checks failed
Update API Data / api_data (push) Has been cancelled
Essential files modified / tag (push) Has been cancelled
CLI CI / test (push) Has been cancelled
Update develop after master merge / develop_update (push) Has been cancelled
Generate Docs / generate (push) Has been cancelled
Lint Format / lint (push) Has been cancelled
Regenerate Files / regen (push) Has been cancelled
Unit Tests / test (push) Has been cancelled

Changed the example in indicator-examples-2 to use a compound literal, otherwise the code fails to compile.
This commit is contained in:
lizaoreo 2024-06-17 15:30:57 -04:00 committed by GitHub
parent baa564bddf
commit dafc46f1d1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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()) {