diff options
| author | フィルターペーパー <76888457+filterpaper@users.noreply.github.com> | 2025-10-19 10:14:37 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-19 03:14:37 +0100 |
| commit | 81df54308687713371ed5fbf4947e38963c7867b (patch) | |
| tree | 36d0a432adcf7613f8a362f3a534e68b4ddaad19 /docs | |
| parent | 4f21beb7153c2b0a1f4d41de7dad5a2173f896b6 (diff) | |
Debounce: Deprecate num_rows parameter (#25632)
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ChangeLog/20251130/PR25632.md | 4 | ||||
| -rw-r--r-- | docs/custom_matrix.md | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/docs/ChangeLog/20251130/PR25632.md b/docs/ChangeLog/20251130/PR25632.md new file mode 100644 index 0000000000..39136067b9 --- /dev/null +++ b/docs/ChangeLog/20251130/PR25632.md | |||
| @@ -0,0 +1,4 @@ | |||
| 1 | # Changes Requiring User Action | ||
| 2 | ## Debounce: Deprecate init and remove num_rows parameter [#25632](https://github.com/qmk/qmk_firmware/pull/25632) | ||
| 3 | |||
| 4 | With dynamic memory allocation removed from all debounce implementations ([#25515](https://github.com/qmk/qmk_firmware/pull/25515)), the `num_rows` parameter has been removed from the `debounce_init()` and `debounce()` functions. The `MATRIX_ROWS_PER_HAND` is now used by default in every implementation. | ||
diff --git a/docs/custom_matrix.md b/docs/custom_matrix.md index ef206944e1..294b88bb0b 100644 --- a/docs/custom_matrix.md +++ b/docs/custom_matrix.md | |||
| @@ -74,7 +74,7 @@ void matrix_init(void) { | |||
| 74 | // TODO: initialize hardware and global matrix state here | 74 | // TODO: initialize hardware and global matrix state here |
| 75 | 75 | ||
| 76 | // Unless hardware debouncing - Init the configured debounce routine | 76 | // Unless hardware debouncing - Init the configured debounce routine |
| 77 | debounce_init(MATRIX_ROWS); | 77 | debounce_init(); |
| 78 | 78 | ||
| 79 | // This *must* be called for correct keyboard behavior | 79 | // This *must* be called for correct keyboard behavior |
| 80 | matrix_init_kb(); | 80 | matrix_init_kb(); |
| @@ -86,7 +86,7 @@ uint8_t matrix_scan(void) { | |||
| 86 | // TODO: add matrix scanning routine here | 86 | // TODO: add matrix scanning routine here |
| 87 | 87 | ||
| 88 | // Unless hardware debouncing - use the configured debounce routine | 88 | // Unless hardware debouncing - use the configured debounce routine |
| 89 | changed = debounce(raw_matrix, matrix, MATRIX_ROWS, changed); | 89 | changed = debounce(raw_matrix, matrix, changed); |
| 90 | 90 | ||
| 91 | // This *must* be called for correct keyboard behavior | 91 | // This *must* be called for correct keyboard behavior |
| 92 | matrix_scan_kb(); | 92 | matrix_scan_kb(); |
