diff options
author | Dasky <32983009+daskygit@users.noreply.github.com> | 2022-06-29 09:25:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-29 01:25:03 -0700 |
commit | dcdc7290e5e800689876c4d3ba393e926f966fbe (patch) | |
tree | f72877e2cb329d32af39955110d3965a422b02d5 /quantum/rgb_matrix/animations | |
parent | f7eb7926e80e34565c615e517a4dbb636dc82797 (diff) |
RGB Matrix Heatmap - Skip positions with NO_LED (#17488)
Diffstat (limited to 'quantum/rgb_matrix/animations')
-rw-r--r-- | quantum/rgb_matrix/animations/typing_heatmap_anim.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/quantum/rgb_matrix/animations/typing_heatmap_anim.h b/quantum/rgb_matrix/animations/typing_heatmap_anim.h index cfc3fc015b..a05c07760e 100644 --- a/quantum/rgb_matrix/animations/typing_heatmap_anim.h +++ b/quantum/rgb_matrix/animations/typing_heatmap_anim.h @@ -18,8 +18,14 @@ void process_rgb_matrix_typing_heatmap(uint8_t row, uint8_t col) { // Limit effect to pressed keys g_rgb_frame_buffer[row][col] = qadd8(g_rgb_frame_buffer[row][col], 32); # else + if (g_led_config.matrix_co[row][col] == NO_LED) { // skip as pressed key doesn't have an led position + return; + } for (uint8_t i_row = 0; i_row < MATRIX_ROWS; i_row++) { for (uint8_t i_col = 0; i_col < MATRIX_COLS; i_col++) { + if (g_led_config.matrix_co[i_row][i_col] == NO_LED) { // skip as target key doesn't have an led position + continue; + } if (i_row == row && i_col == col) { g_rgb_frame_buffer[row][col] = qadd8(g_rgb_frame_buffer[row][col], 32); } else { |