summaryrefslogtreecommitdiff
path: root/keyboards/dz60
diff options
context:
space:
mode:
authorJoakim Tufvegren <jocke@barbanet.com>2021-08-03 23:40:08 +0200
committerGitHub <noreply@github.com>2021-08-04 07:40:08 +1000
commit2b097d670a9fa458b8d059f824a0cbbd5b6c6659 (patch)
tree4a6d2acb69055bab2a408efe3bfacfcbdaccd57d /keyboards/dz60
parentf2fc23d1b13045f991b0269c2853e3219b052b80 (diff)
Fix overflows in WPM calculations (#13128)
* Fix overflow in WPM calculations. First, the "fresh" WPM calculation could end up being up to 12000 (with default `WPM_ESTIMATED_WORD_SIZE`) if keys were pressed more or less simultaneously. This value has now been clamped down to 255, in effect clamping WPM to its max value of 255. Second, with `WPM_ALLOW_COUNT_REGRESSION` enabled, it was possible to regress the WPM below 0 (i.e. to 255) by just repeatedly pressing backspace. * Fix WPM being limited to 235 due to float/int logic.
Diffstat (limited to 'keyboards/dz60')
0 files changed, 0 insertions, 0 deletions