aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Subich <20615740+su-stefan@users.noreply.github.com>2021-08-10 05:14:14 -0400
committerGitHub <noreply@github.com>2021-08-10 10:14:14 +0100
commitaeff347a074495f5aea77612bb083f79f7fcaf17 (patch)
treeb9f35ebe9e3ae403207c1d19f82d84862ba3da16
parentd3932a104cb1db7e9436f5c16ee58cf3684e8b3a (diff)
downloadqmk_firmware-aeff347a074495f5aea77612bb083f79f7fcaf17.tar.gz
qmk_firmware-aeff347a074495f5aea77612bb083f79f7fcaf17.zip
Update feature_wpm.md (#13936)
Fix example markdown code formatting
-rw-r--r--docs/feature_wpm.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/feature_wpm.md b/docs/feature_wpm.md
index c8ec3a7f3..e2fac1ece 100644
--- a/docs/feature_wpm.md
+++ b/docs/feature_wpm.md
@@ -45,6 +45,7 @@ bool wpm_keycode_user(uint16_t keycode) {
45 45
46Additionally, 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). 46Additionally, 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).
47 47
48```c
48__attribute__((weak)) uint8_t wpm_regress_count(uint16_t keycode) { 49__attribute__((weak)) uint8_t wpm_regress_count(uint16_t keycode) {
49 bool weak_modded = (keycode >= QK_LCTL && keycode < QK_LSFT) || (keycode >= QK_RCTL && keycode < QK_RSFT); 50 bool weak_modded = (keycode >= QK_LCTL && keycode < QK_LSFT) || (keycode >= QK_RCTL && keycode < QK_RSFT);
50 51
@@ -60,3 +61,4 @@ __attribute__((weak)) uint8_t wpm_regress_count(uint16_t keycode) {
60 return 1; 61 return 1;
61 } 62 }
62} 63}
64```