Skip to content

Commit

Permalink
Keep linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
filterpaper committed Mar 8, 2022
1 parent 2df30f5 commit 7df0595
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/feature_rgb_matrix.md
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ In order to change the delay of temperature decrease define `RGB_MATRIX_TYPING_H
#define RGB_MATRIX_TYPING_HEATMAP_DECREASE_DELAY_MS 50
```
Heatmap effect may not light up the correct adjacent LEDs for certain key matrix layout such as split keyboards. The following define will limit the effect to just pressed keys:
Heatmap effect may not light up the correct adjacent LEDs for certain key matrix layout such as split keyboards. The following define will limit the effect to pressed keys only:
```c
#define RGB_MATRIX_TYPING_HEATMAP_SLIM
```
Expand Down
6 changes: 3 additions & 3 deletions quantum/rgb_matrix/animations/typing_heatmap_anim.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ RGB_MATRIX_EFFECT(TYPING_HEATMAP)
# endif

void process_rgb_matrix_typing_heatmap(uint8_t row, uint8_t col) {
#ifdef RGB_MATRIX_TYPING_HEATMAP_SLIM
# ifdef RGB_MATRIX_TYPING_HEATMAP_SLIM
// Limit effect to pressed keys
g_rgb_frame_buffer[row][col] = qadd8(g_rgb_frame_buffer[row][col], 32);
#else
# else
uint8_t m_row = row - 1;
uint8_t p_row = row + 1;
uint8_t m_col = col - 1;
Expand All @@ -31,7 +31,7 @@ void process_rgb_matrix_typing_heatmap(uint8_t row, uint8_t col) {
g_rgb_frame_buffer[m_row][col] = qadd8(g_rgb_frame_buffer[m_row][col], 16);
if (p_col < MATRIX_COLS) g_rgb_frame_buffer[m_row][p_col] = qadd8(g_rgb_frame_buffer[m_row][p_col], 13);
}
#endif
# endif
}

// A timer to track the last time we decremented all heatmap values.
Expand Down

0 comments on commit 7df0595

Please sign in to comment.