logo

qmk_firmware

custom branch of QMK firmware git clone https://anongit.hacktivis.me/git/qmk_firmware.git
commit: 9e103614f8aa7420305f11b8b3fd3038d0656121
parent 177e461d903e6414e6d7b5b80eb36f48b0d68626
Author: Joel Challis <git@zvecr.com>
Date:   Fri,  4 Jul 2025 20:09:27 +0100

Fix invalid layer API usage in RGB Matrix docs (#25449)


Diffstat:

Mdocs/features/rgb_matrix.md2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/features/rgb_matrix.md b/docs/features/rgb_matrix.md @@ -486,7 +486,7 @@ This example sets the modifiers to be a specific color based on the layer state. bool rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) { hsv_t hsv = {0, 255, 255}; - if (layer_state_is(layer_state, 2)) { + if (get_highest_layer(layer_state|default_layer_state) == 2) { hsv = (hsv_t){130, 255, 255}; } else { hsv = (hsv_t){30, 255, 255};