Skip to content

Commit

Permalink
Fix indicator code for NK classics (qmk#24462)
Browse files Browse the repository at this point in the history
Fix indicator code

Co-authored-by: yiancar <[email protected]>
  • Loading branch information
2 people authored and acidMyke committed Nov 3, 2024
1 parent 5086b2c commit d530fd1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions keyboards/novelkeys/nk_classic_tkl/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ bool rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) {
for (uint8_t i = 50; i <= 55; i++) {
rgb_matrix_set_color(i, 255, 86, 0);
}
} else if ((rgb_matrix_get_mode() == RGB_MATRIX_TYPING_HEATMAP) || (rgb_matrix_get_mode() == RGB_MATRIX_DIGITAL_RAIN)) {
for (uint8_t i = 50; i <= 55; i++) {
rgb_matrix_set_color(i, 0, 0, 0);
}
}
return false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ bool rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) {
for (uint8_t i = 50; i <= 55; i++) {
rgb_matrix_set_color(i, 255, 86, 0);
}
} else if ((rgb_matrix_get_mode() == RGB_MATRIX_TYPING_HEATMAP) || (rgb_matrix_get_mode() == RGB_MATRIX_DIGITAL_RAIN)) {
for (uint8_t i = 50; i <= 55; i++) {
rgb_matrix_set_color(i, 0, 0, 0);
}
}
return false;
}
Expand Down

0 comments on commit d530fd1

Please sign in to comment.