diff options
author | lizaoreo <[email protected]> | 2024-06-17 15:30:57 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2024-06-17 20:30:57 +0100 |
commit | dafc46f1d11134bee65a4b21a404f8e79d7b8402 (patch) | |
tree | dfc11d35df55fe1fb6ba07a6fdd368e7627f340a | |
parent | baa564bddfa0b1bfc7689bc42ec3d1cd7abb7a13 (diff) | |
download | qmk_firmware-dafc46f1d11134bee65a4b21a404f8e79d7b8402.tar.gz qmk_firmware-dafc46f1d11134bee65a4b21a404f8e79d7b8402.zip |
Update RGB matrix indicator example (#23947)
Changed the example in indicator-examples-2 to use a compound literal, otherwise the code fails to compile.
-rw-r--r-- | docs/features/rgb_matrix.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/features/rgb_matrix.md b/docs/features/rgb_matrix.md index a42f0a0f73..aef766ebd2 100644 --- a/docs/features/rgb_matrix.md +++ b/docs/features/rgb_matrix.md @@ -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()) { |