Skip to content

Commit

Permalink
Update feature_wpm.md (qmk#13936)
Browse files Browse the repository at this point in the history
Fix example markdown code formatting
  • Loading branch information
subich committed Aug 10, 2021
1 parent d3932a1 commit aeff347
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/feature_wpm.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ bool wpm_keycode_user(uint16_t keycode) {
Additionally, if `WPM_ALLOW_COUNT_REGRESSION` is defined, there is the `uint8_t wpm_regress_count(uint16_t keycode)` function that allows you to decrease the WPM. This is useful if you want to be able to penalize certain keycodes (or even combinations).
```c
__attribute__((weak)) uint8_t wpm_regress_count(uint16_t keycode) {
bool weak_modded = (keycode >= QK_LCTL && keycode < QK_LSFT) || (keycode >= QK_RCTL && keycode < QK_RSFT);
Expand All @@ -60,3 +61,4 @@ __attribute__((weak)) uint8_t wpm_regress_count(uint16_t keycode) {
return 1;
}
}
```

0 comments on commit aeff347

Please sign in to comment.