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
yiancar and yiancar authored Oct 8, 2024
1 parent 1a284f2 commit c0d57a6
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 c0d57a6

Please sign in to comment.